Skip to content

Commit fd8d1f1

Browse files
jsvisaJosé Valim
authored andcommitted
Add test case for bug
1 parent 9ebe851 commit fd8d1f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/elixir/test/elixir/string_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ defmodule StringTest do
303303
assert String.slice("", 0, 1) == ""
304304
assert String.slice("", 1, 1) == nil
305305

306+
assert String.slice("elixir", 0..-2) == "elixi"
306307
assert String.slice("elixir", 1..3) == "lix"
307308
assert String.slice("elixir", -5..-3) == "lix"
308309
assert String.slice("elixir", -5..3) == "lix"

0 commit comments

Comments
 (0)