Add additional test case

This commit is contained in:
Sijawusz Pur Rahnama 2022-11-18 07:04:51 +01:00
parent eabe463386
commit 0b0a815c31
1 changed files with 6 additions and 0 deletions

View File

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