Skip to content

Commit b6920f3

Browse files
committed
Fix test on M1
1 parent 48d662d commit b6920f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/TestStorage.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,15 @@ TEST_F(StorageTest, IntFloat)
281281
}
282282

283283
{ // int -> float (bad)
284-
ASSERT_TRUE(storage->WriteInt("key3", 9223372036854775807));
284+
ASSERT_TRUE(storage->WriteInt("key3", 9223372036854705807));
285285

286286
{
287287
auto [value, ok] = storage->ReadInt("key3");
288288
EXPECT_TRUE(ok);
289-
EXPECT_EQ(9223372036854775807, value);
289+
EXPECT_EQ(9223372036854705807, value);
290290
}
291291

292-
{ // value can'be represented as float without loss
292+
{ // value can't be represented as float without loss
293293
auto [value, ok] = storage->ReadFloat("key3");
294294
EXPECT_FALSE(ok);
295295
EXPECT_EQ(0, value);
@@ -305,7 +305,7 @@ TEST_F(StorageTest, IntFloat)
305305
EXPECT_EQ(12345678.123, value);
306306
}
307307

308-
{ // value can'be represented as integer without loss
308+
{ // value can't be represented as integer without loss
309309
auto [value, ok] = storage->ReadInt("key4");
310310
EXPECT_FALSE(ok);
311311
EXPECT_EQ(0, value);

0 commit comments

Comments
 (0)