diff options
Diffstat (limited to 'other/Kermit/test/test_stoi.cpp')
| -rw-r--r-- | other/Kermit/test/test_stoi.cpp | 17 |
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 | |||
| 5 | main () | ||
| 6 | { | ||
| 7 | cout << stoi16 (string ("0")) << endl; | ||
| 8 | cout << stoi16 (string ("1")) << endl; | ||
| 9 | cout << stoi16 (string ("2")) << endl; | ||
| 10 | cout << stoi16 (string ("f")) << endl; | ||
| 11 | cout << stoi16 (string ("00")) << endl; | ||
| 12 | cout << stoi16 (string ("ff")) << endl; | ||
| 13 | cout << stoi16 (string ("41")) << endl; | ||
| 14 | cout << stoi16 (string ("73")) << endl; | ||
| 15 | cout << stoi16 (string ("50")) << endl; | ||
| 16 | |||
| 17 | } | ||
