Skip to content

Commit 1b57447

Browse files
committed
Add tests for string character arrays and enhance string processing functionality
1 parent 2258467 commit 1b57447

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

string/string_test.mbt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,3 +601,11 @@ test "string pattern matching" {
601601
inspect!(process_string("true"), content="True")
602602
inspect!(process_string(""), content="Other")
603603
}
604+
605+
///|
606+
test "string chars array" {
607+
let v0 : String = ['a', .."x"]
608+
assert_true!(v0 is "ax")
609+
let v : String = ['a', 'b']
610+
assert_true!(v is "ab")
611+
}

0 commit comments

Comments
 (0)