wasp/stic/test/utils.test.cpp
2018-09-29 23:20:05 +02:00

14 lines
281 B
C++

#include "catch.hpp"
#include "utils.hpp"
using namespace stic;
TEST_CASE("endsWith() returns true for suffix") {
REQUIRE(utils::endsWith("ABCD", "CD") == true);
}
TEST_CASE("endsWith() returns false for non-suffix") {
REQUIRE(utils::endsWith("ABCD", "C") == false);
}