summaryrefslogtreecommitdiff
path: root/other/Kermit/test/test_stoi.cpp
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /other/Kermit/test/test_stoi.cpp
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/Kermit/test/test_stoi.cpp')
-rw-r--r--other/Kermit/test/test_stoi.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/other/Kermit/test/test_stoi.cpp b/other/Kermit/test/test_stoi.cpp
new file mode 100644
index 0000000..4441e49
--- /dev/null
+++ b/other/Kermit/test/test_stoi.cpp
@@ -0,0 +1,17 @@
1#include <iostream>
2#include <string>
3#include <stoi16.hpp>
4
5main ()
6{
7cout << stoi16 (string ("0")) << endl;
8cout << stoi16 (string ("1")) << endl;
9cout << stoi16 (string ("2")) << endl;
10cout << stoi16 (string ("f")) << endl;
11cout << stoi16 (string ("00")) << endl;
12cout << stoi16 (string ("ff")) << endl;
13cout << stoi16 (string ("41")) << endl;
14cout << stoi16 (string ("73")) << endl;
15cout << stoi16 (string ("50")) << endl;
16
17}