mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-26 17:37:47 +01:00
ASSERT_EQ instead of EXPECT_EQ in tests
because that's what we actually want, to crash right now, no point in continuing
This commit is contained in:
@@ -26,11 +26,11 @@ TEST(BuzhashTest, SimpleTest) {
|
||||
for (int i = 0; i < loremipsum.length(); i++) {
|
||||
b2.feed((uint8_t) loremipsum[i]);
|
||||
if (b2.get() == h1) {
|
||||
EXPECT_EQ(i, loremipsum.find("e eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non p"));
|
||||
ASSERT_EQ(i, loremipsum.find("e eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non p"));
|
||||
h1found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
EXPECT_EQ(h1found, true);
|
||||
ASSERT_EQ(h1found, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user