mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-11 12:37:32 +03:00
parent
513de1f738
commit
35c8dd9bfa
@ -197,6 +197,26 @@
|
||||
&(split-by "erikmsvedlhejxfoo" &[\m \l \x])
|
||||
"split-by works correctly"
|
||||
)
|
||||
(assert-equal test
|
||||
"hello world"
|
||||
&(join &[@"hello" @" " @"world"])
|
||||
"join works correctly"
|
||||
)
|
||||
(assert-equal test
|
||||
"hello world"
|
||||
&(join-with "" &[@"hello" @" " @"world"])
|
||||
"join-with works correctly I"
|
||||
)
|
||||
(assert-equal test
|
||||
"hello world"
|
||||
&(join-with " " &[@"hello" @"world"])
|
||||
"join-with works correctly II"
|
||||
)
|
||||
(assert-equal test
|
||||
"hello aaaa there aaaa world"
|
||||
&(join-with " aaaa " &[@"hello" @"there" @"world"])
|
||||
"join-with works correctly III"
|
||||
)
|
||||
(print-test-results test)
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user