From 0b0a815c31928670622d89f387634bdb18994dbd Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Fri, 18 Nov 2022 07:04:51 +0100 Subject: [PATCH] Add additional test case --- spec/ameba/rule/style/redundant_parentheses_spec.cr | 6 ++++++ 1 file changed, 6 insertions(+) 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