Skip to content

Commit

Permalink
select case as const: fix potential bug
Browse files Browse the repository at this point in the history
- when checking first run generated test might have given incorrect results
- no change in stored warning test result
  • Loading branch information
jayrm committed Aug 5, 2018
1 parent 8c07712 commit b342863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/warnings/generator/chk-select-const.bas
Expand Up @@ -45,12 +45,12 @@ while eof(1) = 0
if left( x, 8 ) = "warning " then
mode = 1
else
if instr( x, "warning" ) > 0 then
if instr( 2, x, "warning" ) > 0 then
print "line " & lineno & " - unexpected warning"
end if
end if
else
if instr( x, "warning" ) = 0 then
if instr( 2, x, "warning" ) = 0 then
print "line " & lineno & " - expected warning"
end if
mode = 0
Expand Down

0 comments on commit b342863

Please sign in to comment.