Skip to content

Commit

Permalink
Add test reproducing #611
Browse files Browse the repository at this point in the history
  • Loading branch information
René Föhring committed Mar 7, 2019
1 parent 75bd8a0 commit 27edf35
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/credo/check/readability/string_sigils_test.exs
Expand Up @@ -91,6 +91,19 @@ defmodule Credo.Check.Readability.StringSigilsTest do
|> refute_issues(@described_check)
end

test "does NOT report for double quotes in heredoc /2" do
"""
\"\"\"
{
"hello": "world",
"foo": "bar"
}
\"\"\"
"""
|> to_source_file
|> refute_issues(@described_check)
end

test "does NOT report for single quotes in heredoc" do
~s(f\\"\\"b\\"\\")
|> create_heredoc_snippet_w_single_quotes()
Expand Down

0 comments on commit 27edf35

Please sign in to comment.