1
0
mirror of https://github.com/janet-lang/janet synced 2026-07-14 23:32:42 +00:00

Add option to cli interface to stop scanning options.

This commit is contained in:
Calvin Rose
2018-05-26 14:17:44 -04:00
parent 4dc51915a9
commit 8a346ec655
2 changed files with 17 additions and 7 deletions
+7
View File
@@ -119,4 +119,11 @@
(assert (= (maxpath triangle) 25) `max triangle`)
(assert (= (string.join @["one" "two" "three"]) "onetwothree") "string.join 1 argument")
(assert (= (string.join @["one" "two" "three"] ", ") "one, two, three") "string.join 2 arguments")
(assert (= (string.join @[] ", ") "") "string.join empty array")
(assert (= (string.find "123" "abc123def") 3) "string.find positive")
(assert (= (string.find "1234" "abc123def") nil) "string.find negative")
(end-suite)