Skip to content

Commit

Permalink
tests: String operation tests (PTM's)
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 28, 2024
1 parent 008c043 commit 96b1a8e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/string.fl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
assert "zonnebloemgranen".len() == 16
assert "zonnebloemgranen".endswith("granen") == true
assert "zonnebloemgranen".endswith("zonne") == false
assert "zonnebloemgranen".startswith("granen") == false
assert "zonnebloemgranen".startswith("zonne") == true

let x = "zonnebloemgranen"
assert x.len() == 16

0 comments on commit 96b1a8e

Please sign in to comment.