Skip to content

Commit 945c40c

Browse files
authored
Account for line endings in sigil test
1 parent a8fbcb2 commit 945c40c

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

lib/elixir/test/elixir/kernel/sigils_test.exs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,9 @@ defmodule Kernel.SigilsTest do
3333
assert ~S[foo\]] == "foo]"
3434
end
3535

36-
if windows?() do
37-
test "sigil S newline Windows" do
38-
assert ~S(foo\
39-
bar) == "foo\\\r\nbar"
40-
end
41-
else
42-
test "sigil S newline Unix" do
43-
assert ~S(foo\
44-
bar) == "foo\\\nbar"
45-
end
36+
test "sigil S newline" do
37+
assert ~S(foo\
38+
bar) in ["foo\\\nbar", "foo\\\r\nbar"]
4639
end
4740

4841
test "sigil S with heredoc" do

0 commit comments

Comments
 (0)