mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-26 00:19:29 +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_checkComparisonWithLeadingX4 = verifyNot checkComparisonWithLeadingX "test $foo = xbar"
|
||||||
prop_checkComparisonWithLeadingX5 = verify checkComparisonWithLeadingX "[ \"x$foo\" = 'xlol' ]"
|
prop_checkComparisonWithLeadingX5 = verify checkComparisonWithLeadingX "[ \"x$foo\" = 'xlol' ]"
|
||||||
prop_checkComparisonWithLeadingX6 = verify checkComparisonWithLeadingX "[ x\"$foo\" = x'lol' ]"
|
prop_checkComparisonWithLeadingX6 = verify checkComparisonWithLeadingX "[ x\"$foo\" = x'lol' ]"
|
||||||
|
prop_checkComparisonWithLeadingX7 = verify checkComparisonWithLeadingX "[ X$foo != Xbar ]"
|
||||||
checkComparisonWithLeadingX params t =
|
checkComparisonWithLeadingX params t =
|
||||||
case t of
|
case t of
|
||||||
TC_Binary id typ op lhs rhs
|
TC_Binary id typ op lhs rhs
|
||||||
|
Reference in New Issue
Block a user