You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. #define CATCH_CONFIG_RUNNER
  2. #include <catch2/catch.hpp>
  3. #include <testlib/calc.hpp>
  4. TEST_CASE("A simple test case") {
  5. CHECK_FALSE(false);
  6. CHECK(2 == 2);
  7. CHECK(1 != 4);
  8. CHECK(stuff::calculate(3, 11) == 42);
  9. }
  10. int main(int argc, char** argv) {
  11. // We provide our own runner
  12. return Catch::Session().run(argc, argv);
  13. }