diff options
Diffstat (limited to 'tests/inttypes_test.cpp')
-rw-r--r-- | tests/inttypes_test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/inttypes_test.cpp b/tests/inttypes_test.cpp index ac37e6295..e58850340 100644 --- a/tests/inttypes_test.cpp +++ b/tests/inttypes_test.cpp @@ -38,3 +38,11 @@ TEST(inttypes, misc) { sscanf(buf, "%08" SCNuPTR, &u); sscanf(buf, "%08" SCNxPTR, &u); } + +TEST(inttypes, wcstoimax) { + ASSERT_EQ(123, wcstoimax(L"123", NULL, 10)); +} + +TEST(inttypes, wcstoumax) { + ASSERT_EQ(123U, wcstoumax(L"123", NULL, 10)); +} |