diff --git a/spec/ameba/rule/style/redundant_parentheses_spec.cr b/spec/ameba/rule/style/redundant_parentheses_spec.cr index c356b63d..92aa9cea 100644 --- a/spec/ameba/rule/style/redundant_parentheses_spec.cr +++ b/spec/ameba/rule/style/redundant_parentheses_spec.cr @@ -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