Results for ysh-int-float.test.sh

statusoshosh-cpp
pass 118
FAIL 03
total1111
caseoshosh-cppdescription
0pass pass Pound char literal (is an integer TODO: could be ord())
1pass pass The literal #''' isn't accepted (use \' instead)
2pass pass Float Literals with e-1
3pass pass Float Literal with _
4pass pass Period requires digit on either side, not 5. or .5
5pass FAIL Big float Literals with _
details
6pass pass Big floats like 1e309 and -1e309 go to Inf / -Inf
7pass pass Tiny floats go to zero
8pass FAIL floatEquals() INFINITY NAN
details
9pass FAIL Regression: 1/3 gives 0.3+
details
10pass pass Number of digits in 1/3
19 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp5 Big float Literals with _

[osh-cpp stdout] Expected '42000.0005\n420000.005\n4200.00005\n', got '42000.000500000002\n420000.005\n4200.0000499999996\n'

stdout:
42000.000500000002
420000.005
4200.0000499999996
stderr:
osh-cpp8 floatEquals() INFINITY NAN

[osh-cpp stdout] Expected 'inf\nneg_inf\nnan is not nan\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp9 Regression: 1/3 gives 0.3+

[osh-cpp stdout] Expected 'one-third\ntwo-thirds\n', got 'one-third\n'

stdout:
one-third
stderr: