Skip to content

Commit

Permalink
Update string.replace tests in string_misc.sky
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Apr 23, 2020
1 parent 8250c82 commit 6a25d31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/starlark/testdata/string_misc.sky
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ assert_eq('b\\n\\n\\'.replace('\\', '$()'), "b$()n$()n$()")

assert_eq('banana'.replace('a', 'e', 2), "benena")
assert_eq('banana'.replace('a', 'e', 0), "banana")
assert_eq('banana'.replace('a', 'e', -1), "banana")
assert_eq('banana'.replace('a', 'e', -10), "banana")
assert_eq('banana'.replace('a', 'e', -1), "benene")
assert_eq('banana'.replace('a', 'e', -10), "benene")

assert_eq('banana'.replace('', '-'), "-b-a-n-a-n-a-")
assert_eq('banana'.replace('', '-', -2), "banana")
assert_eq('banana'.replace('', '-', -2), "-b-a-n-a-n-a-")
assert_eq('banana'.replace('', '-', 2), "-b-anana")
assert_eq('banana'.replace('', '-', 0), "banana")

Expand Down

0 comments on commit 6a25d31

Please sign in to comment.