mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-25 17:51:05 +08:00
Add unit test for #2689
This commit is contained in:
@@ -4318,6 +4318,7 @@ prop_checkComparisonWithLeadingX3 = verifyNot checkComparisonWithLeadingX "[ $fo
|
||||
prop_checkComparisonWithLeadingX4 = verifyNot checkComparisonWithLeadingX "test $foo = xbar"
|
||||
prop_checkComparisonWithLeadingX5 = verify checkComparisonWithLeadingX "[ \"x$foo\" = 'xlol' ]"
|
||||
prop_checkComparisonWithLeadingX6 = verify checkComparisonWithLeadingX "[ x\"$foo\" = x'lol' ]"
|
||||
prop_checkComparisonWithLeadingX7 = verify checkComparisonWithLeadingX "[ X$foo != Xbar ]"
|
||||
checkComparisonWithLeadingX params t =
|
||||
case t of
|
||||
TC_Binary id typ op lhs rhs
|
||||
|
Reference in New Issue
Block a user