From 8180addc73db94c2e2b070796b16844597959873 Mon Sep 17 00:00:00 2001 From: Klemens David Morgenstern Date: Wed, 30 Jan 2019 20:04:50 +0800 Subject: [PATCH] Broke gtest --- test/gtest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/gtest.cpp b/test/gtest.cpp index 3cf5b14..f456169 100644 --- a/test/gtest.cpp +++ b/test/gtest.cpp @@ -3,16 +3,16 @@ TEST(SquareRootTest, PositiveNos) { -ASSERT_NE(6, 36.0); -ASSERT_GE(2, 1); -ASSERT_LE(2, 5); -ASSERT_EQ(3, 3); + ASSERT_NE(6, 35.0); + ASSERT_GE(2, 3); + ASSERT_LE(2, 1); + ASSERT_EQ(4, 3); } TEST(SquareRootTest, NegativeNos) { -ASSERT_EQ(-1.0, -1.0); -ASSERT_DOUBLE_EQ(42.0, 4.2 * 10.); + ASSERT_EQ(-1.3, -1.0); + ASSERT_EQ(42, 4.2 * 10.); } int main(int argc, char **argv) {