Skip to content

Commit b293a46

Browse files
committed
Add tests to the parsing of floating-point values in PRINT.
Parsing floating point values is sometimes picky, as the parser tries to parse as integer before, this tests ensure that at least we are not reversing.
1 parent eb196d3 commit b293a46

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

testsuite/tests/fp-fun.bas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,8 @@ DEG
3535
? INT(ATN(1) * 1000000 - 45000000)
3636
? INT(SIN(100) * 10000000 - 9848078)
3737
? INT(COS(100) * 10000000 + 1736482)
38+
' Parsing of FP print
39+
? .1, 1.E1, (1E2)
40+
' Parsing of FP comparison
41+
? 1 < 1.1, 1.1 > 1
3842

testsuite/tests/fp-fun.chk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ DEG
3434
0
3535
0
3636
0
37+
0.1 10 100
38+
1 1

0 commit comments

Comments
 (0)