Results for ysh-int-float.test.sh

statusoshosh-cpp
pass 96
FAIL 03
total99
caseoshosh-cppdescription
0pass pass Float Literals with e-1
1pass pass Float Literal with _
2pass pass Period requires digit on either side, not 5. or .5
3pass FAIL Big float Literals with _
details
4pass pass Big floats like 1e309 and -1e309 go to Inf / -Inf
5pass pass Tiny floats go to zero
6pass FAIL floatEquals() INFINITY NAN
details
7pass FAIL Regression: 1/3 gives 0.3+
details
8pass pass Number of digits in 1/3
15 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp3 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-cpp6 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-cpp7 Regression: 1/3 gives 0.3+

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

stdout:
one-third
stderr: