diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/Kermit/test/test_stoi.cpp | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
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 | } | ||
