summaryrefslogtreecommitdiff
path: root/other/Kermit/test/test_stoi.cpp
diff options
context:
space:
mode:
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}