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:
2024-03-15 22:37:26 +01:00
parent 0095f9ff69
commit 8e9ed2b715
6 changed files with 89 additions and 89 deletions

View File

@@ -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);
}
}