mirror of
https://github.com/wasp-lang/wasp.git
synced 2025-01-08 18:50:45 +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);
|
||
|
}
|