Skip to content

Commit

Permalink
Try to reproduce #695
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrene committed Sep 1, 2019
1 parent 13f2899 commit d757fdb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/credo/check/readability/string_sigils_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ defmodule Credo.Check.Readability.StringSigilsTest do
|> refute_issues(@described_check)
end

test "does NOT crash if string contains singnle quotes and an interpolation" do
snippet = ~S"""
function.("'#{parameter}'")
"""

snippet
|> to_source_file
|> refute_issues(@described_check)
end

#
# cases raising issues
#
Expand Down

0 comments on commit d757fdb

Please sign in to comment.