mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-22 16:41:30 +03:00
14 lines
281 B
C++
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);
|
|
}
|