Add additional test case

This commit is contained in:
Sijawusz Pur Rahnama 2022-11-18 07:04:51 +01:00
parent eabe463386
commit 0b0a815c31

View file

@ -84,6 +84,12 @@ module Ameba::Rule::Style
end end
CRYSTAL CRYSTAL
expect_no_issues subject, <<-CRYSTAL
if !(foo = @foo)
foo
end
CRYSTAL
expect_no_issues subject, <<-CRYSTAL expect_no_issues subject, <<-CRYSTAL
if foo = @foo if foo = @foo
foo foo