gwatch/tests/test_main.cpp

12 lines
247 B
C++

#include <catch2/catch_test_macros.hpp>
TEST_CASE("Basic test", "[example]") {
REQUIRE(1 + 1 == 2);
}
TEST_CASE("String operations", "[string]") {
std::string str = "hello";
REQUIRE(str.length() == 5);
REQUIRE(str == "hello");
}