diff options
Diffstat (limited to 'tests/functional/c/comparison_of_constants.txt')
-rw-r--r-- | tests/functional/c/comparison_of_constants.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional/c/comparison_of_constants.txt b/tests/functional/c/comparison_of_constants.txt index 1a0984024..60b421009 100644 --- a/tests/functional/c/comparison_of_constants.txt +++ b/tests/functional/c/comparison_of_constants.txt @@ -1,9 +1,9 @@ comparison-of-constants:4:3:4:9::"Comparison between constants: '2 is 2' has a constant value":HIGH -literal-comparison:4:3:4:9::Comparison to literal:UNDEFINED +literal-comparison:4:3:4:9::In '2 is 2', use '==' when comparing constant literals not 'is' ('2 == 2'):HIGH comparison-of-constants:7:6:7:12::"Comparison between constants: '2 == 2' has a constant value":HIGH comparison-of-constants:10:6:10:11::"Comparison between constants: '2 > 2' has a constant value":HIGH comparison-of-constants:20:3:20:15::"Comparison between constants: 'True == True' has a constant value":HIGH singleton-comparison:20:3:20:15::Comparison 'True == True' should be 'True is True' if checking for the singleton value True, or 'True' if testing for truthiness:UNDEFINED -literal-comparison:25:3:25:13::Comparison to literal:UNDEFINED -literal-comparison:28:3:28:13::Comparison to literal:UNDEFINED -literal-comparison:31:3:31:14::Comparison to literal:UNDEFINED +literal-comparison:25:3:25:13::In 'CONST is 0', use '==' when comparing constant literals not 'is' ('CONST == 0'):HIGH +literal-comparison:28:3:28:13::In 'CONST is 1', use '==' when comparing constant literals not 'is' ('CONST == 1'):HIGH +literal-comparison:31:3:31:14::In 'CONST is 42', use '==' when comparing constant literals not 'is' ('CONST == 42'):HIGH |