wasp/stic/test/utils.test.cpp

14 lines
281 B
C++
Raw Normal View History

2018-09-30 00:20:05 +03:00
#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);
}