Skip to content

Commit

Permalink
Added more tests for squeeze
Browse files Browse the repository at this point in the history
  • Loading branch information
DavyLandman committed Jul 16, 2024
1 parent 7853970 commit 97131ac
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ test bool tstSqueeze3(str S) {
}

test bool tstSqueezeUnicode() = squeeze("Hi 🍝🍝World", "🍝") == "Hi 🍝World";
test bool tstSqueezeCase1() = squeeze("abc", "a-c") == "abc";
test bool tstSqueezeCase2() = squeeze("aabc", "a-c") == "abc";
test bool tstSqueezeCase3() = squeeze("aabcc", "a-c") == "abc";
test bool tstSqueezeCase4() = squeeze("aabbcc", "a-c") == "abc";
test bool tstSqueezeCase5() = squeeze("aaabc", "a-c") == "abc";


test bool tstStartsWith(str S1, str S2) = startsWith(S1+S2, S1);
Expand Down

0 comments on commit 97131ac

Please sign in to comment.