fork download
  1. #include "gtest/gtest.h"
  2.  
  3. TEST (SquareRootTest, PositiveNos) {
  4. EXPECT_EQ (18.0, square-root (324.0));
  5. EXPECT_EQ (25.4, square-root (645.16));
  6. EXPECT_EQ (50.3321, square-root (2533.310224));
  7. }
  8.  
  9. TEST (SquareRootTest, ZeroAndNegativeNos) {
  10. ASSERT_EQ (0.0, square-root (0.0));
  11. ASSERT_EQ (-1, square-root (-22.0));
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:25: fatal error: gtest/gtest.h: No such file or directory
 #include "gtest/gtest.h"
                         ^
compilation terminated.
stdout
Standard output is empty