mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
string: add another test for split_nth()
This commit is contained in:
parent
15a63b5bcb
commit
edc44993d1
@ -145,6 +145,11 @@ fn test_split_nth_values() {
|
|||||||
assert a3[1] == 'eprintln(phase'
|
assert a3[1] == 'eprintln(phase'
|
||||||
assert a3[2] == '1)'
|
assert a3[2] == '1)'
|
||||||
|
|
||||||
|
a4 := line.split_nth('=', 4)
|
||||||
|
assert a4.len == 3
|
||||||
|
assert a4[0] == 'CMD'
|
||||||
|
assert a4[1] == 'eprintln(phase'
|
||||||
|
assert a4[2] == '1)'
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_split() {
|
fn test_split() {
|
||||||
|
Loading…
Reference in New Issue
Block a user