fix test, add string unit test, refactor stack
All checks were successful
/ test (push) Successful in 56s

This commit is contained in:
Neemek 2025-10-22 20:20:47 +02:00
parent b95d2954ba
commit beaa325c7b
3 changed files with 37 additions and 20 deletions

12
tests/strings.ang Normal file
View file

@ -0,0 +1,12 @@
txt := "Hello world!"
# string length
assertEq(txt.length(), 12)
# string split
assertEq(txt.split(" ").length(), 2)
# string indexing
assertEq(txt.at(1), "e")
assertEq(txt.at(6), "w")