diff options
Diffstat (limited to 'core/fxcrt/fx_extension_unittest.cpp')
-rw-r--r-- | core/fxcrt/fx_extension_unittest.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/fxcrt/fx_extension_unittest.cpp b/core/fxcrt/fx_extension_unittest.cpp index 4e4294c7ce..1bc3ec6298 100644 --- a/core/fxcrt/fx_extension_unittest.cpp +++ b/core/fxcrt/fx_extension_unittest.cpp @@ -5,18 +5,18 @@ #include "core/fxcrt/fx_extension.h" #include "testing/gtest/include/gtest/gtest.h" -TEST(fxcrt, FXSYS_toHexDigit) { - EXPECT_EQ(10, FXSYS_toHexDigit('a')); - EXPECT_EQ(10, FXSYS_toHexDigit('A')); - EXPECT_EQ(7, FXSYS_toHexDigit('7')); - EXPECT_EQ(0, FXSYS_toHexDigit('i')); +TEST(fxcrt, FXSYS_HexCharToInt) { + EXPECT_EQ(10, FXSYS_HexCharToInt('a')); + EXPECT_EQ(10, FXSYS_HexCharToInt('A')); + EXPECT_EQ(7, FXSYS_HexCharToInt('7')); + EXPECT_EQ(0, FXSYS_HexCharToInt('i')); } -TEST(fxcrt, FXSYS_toDecimalDigit) { - EXPECT_EQ(7, FXSYS_toDecimalDigit('7')); - EXPECT_EQ(0, FXSYS_toDecimalDigit('a')); - EXPECT_EQ(7, FXSYS_toDecimalDigit(L'7')); - EXPECT_EQ(0, FXSYS_toDecimalDigit(L'a')); +TEST(fxcrt, FXSYS_DecimalCharToInt) { + EXPECT_EQ(7, FXSYS_DecimalCharToInt('7')); + EXPECT_EQ(0, FXSYS_DecimalCharToInt('a')); + EXPECT_EQ(7, FXSYS_DecimalCharToInt(L'7')); + EXPECT_EQ(0, FXSYS_DecimalCharToInt(L'a')); } TEST(fxcrt, FXSYS_isDecimalDigit) { |