Skip to content

Commit

Permalink
fix utils_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
belous-dp authored and ladisgin committed Mar 14, 2024
1 parent 1f3044e commit 132a7d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/test/framework/Utils_Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ namespace {

TEST(StringUtils_stotInt128, simple) {
__int128 val = 42;
ASSERT_EQ(val, StringUtils::stot<__int128>("42"));
ASSERT_TRUE(val == StringUtils::stot<__int128>("42"));
}

TEST(StringUtils_stotInt128, simple_unsigned) {
unsigned __int128 val = 42;
ASSERT_EQ(val, StringUtils::stot<unsigned __int128>("42"));
ASSERT_TRUE(val == StringUtils::stot<unsigned __int128>("42"));
}

TEST(StringUtils_stotInt128, INT128_MIN) {
__int128 val = 1;
val <<= 127;
ASSERT_EQ(val, StringUtils::stot<__int128>("-170141183460469231731687303715884105728"));
ASSERT_TRUE(val == StringUtils::stot<__int128>("-170141183460469231731687303715884105728"));
}

TEST(ReadBytesAsValueTest, Unsigned1) {
Expand Down

0 comments on commit 132a7d4

Please sign in to comment.