Skip to content

Commit ea4032e

Browse files
committed
Add tests for string character arrays and enhance string processing functionality
1 parent 19021eb commit ea4032e

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
@@ -710,3 +710,11 @@ test "split and then join should be identity" {
710710
assert_eq!(string, string.split("").map(View::to_string).join(""))
711711
assert_eq!(string, string.split("a").map(View::to_string).join("a"))
712712
}
713+
714+
///|
715+
test "string chars array" {
716+
let v0 : String = ['a', .."x"]
717+
assert_true!(v0 is "ax")
718+
let v : String = ['a', 'b']
719+
assert_true!(v is "ab")
720+
}

0 commit comments

Comments
 (0)