Skip to content

Commit 08cc301

Browse files
committed
Add a test to stab as not an operator
1 parent 3781a4d commit 08cc301

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/elixir/test/elixir/code_fragment_test.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,9 @@ defmodule CodeFragmentTest do
10501050
begin: {1, 5},
10511051
end: {1, 6}
10521052
}
1053+
1054+
# invalid
1055+
assert CF.surround_context("->", {1, 2}) == :none
10531056
end
10541057

10551058
test "sigil" do

0 commit comments

Comments
 (0)