mirror of
https://github.com/sagiegurari/duckscript
synced 2024-10-14 11:53:05 +00:00
19 lines
301 B
Plaintext
19 lines
301 B
Plaintext
|
|
fn test_not_found
|
|
output = last_indexof "1 2 3 4 5" "4 5 6"
|
|
|
|
assert_eq ${output} ""
|
|
end
|
|
|
|
fn test_prefix
|
|
output = last_indexof "1 2 3 4 5 1 2 3 4 5" "1 2"
|
|
|
|
assert_eq ${output} 10
|
|
end
|
|
|
|
fn test_suffix
|
|
output = last_indexof "1 2 3 4 5 1 2 3 4 5" "4 5"
|
|
|
|
assert_eq ${output} 16
|
|
end
|