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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user