Results for ysh-int-float.test.sh

statusosh
FAIL 11
total11
caseoshdescription
0FAIL Float Literals with e-1
details
1FAIL Float Literal with _
details
2FAIL Period requires digit on either side, not 5. or .5
details
3FAIL Big float Literals with _
details
4FAIL Big floats like 1e309 and -1e309 go to Inf / -Inf
details
5FAIL Tiny floats go to zero
details
6FAIL floatEquals() INFINITY NAN
details
7FAIL pretty print INFINITY, -INFINITY, NAN
details
8FAIL can't convert NAN, INFINITY to integer
details
9FAIL Regression: 1/3 gives 0.3+
details
10FAIL Number of digits in 1/3
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 11 failed, 0 timeouts, 0 cases skipped
11 failed under osh

Details on runs that didn't PASS

osh0 Float Literals with e-1

[osh stdout] Expected 'ok\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh1 Float Literal with _

[osh stdout] Expected 'ok\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh2 Period requires digit on either side, not 5. or .5

[osh stdout] Expected '0.5\n5.0\n', got ''
[osh status] Expected 2, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh3 Big float Literals with _

[osh stdout] Expected '42000.0005\n420000.005\n4200.00005\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh4 Big floats like 1e309 and -1e309 go to Inf / -Inf

[osh stdout] Expected 'inf\n-inf\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh5 Tiny floats go to zero

[osh stdout] Expected 'float=0.0\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh6 floatEquals() INFINITY NAN

[osh stdout] Expected 'inf\nneg_inf\nnan is not nan\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh7 pretty print INFINITY, -INFINITY, NAN

[osh stdout] Expected '(List) [INFINITY, -INFINITY, NAN]\n(List) [INFINITY,-INFINITY,NAN]\n' Got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh8 can't convert NAN, INFINITY to integer

[osh stdout] Expected 'code 3\ncode 3\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh9 Regression: 1/3 gives 0.3+

[osh stdout] Expected 'one-third\ntwo-thirds\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh10 Number of digits in 1/3

[osh stdout] Expected 'pass\n', got ''
[osh status] Expected 0, got 1
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_