Results for ysh-expr-arith.test.sh

statusosh
FAIL 27
total27
caseoshdescription
0FAIL Minus operator is left associative
details
1FAIL Division operators are left associative
details
2FAIL Exponentiation is right associative
details
3FAIL Binary operators, with conversions from string
details
4FAIL Floating Point Division with /
details
5FAIL Operations That Convert to Integer: // % **
details
6FAIL Division by zero
details
7FAIL Unary Operations
details
8FAIL unary minus on strings
details
9FAIL unary ~ complement on strings
details
10FAIL unary ~ doesn't work on bool
details
11FAIL unary ~ doesn't work on float
details
12FAIL unary - applied to bool is not allowed
details
13FAIL Big float constants becomes inf and -inf, tiny become 0.0 and -0.0
details
14FAIL Int constants bigger than 64 bits
details
15FAIL Bit shift by negative number is not allowed
details
16FAIL 64-bit operations
details
17FAIL 64-bit integer doesn't overflow
details
18FAIL Integer literals
details
19FAIL Integer literals with underscores
details
20FAIL Exponentiation with **
details
21FAIL Float Division
details
22FAIL Integer Division (rounds toward zero)
details
23FAIL % operator is remainder
details
24FAIL Bitwise logical
details
25FAIL Shift operators
details
26FAIL multiline strings, list, tuple syntax for list, etc.
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 27 failed, 0 timeouts, 0 cases skipped
27 failed under osh

Details on runs that didn't PASS

osh0 Minus operator is left associative

[osh stdout] Expected 'a=0 b=0\na=0 b=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_
osh1 Division operators are left associative

[osh stdout] Expected 'a=1.25 b=1.25\na=1 b=1\na=2 b=2\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 Exponentiation is right associative

[osh stdout] Expected 'a=81 b=81\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_
osh3 Binary operators, with conversions from string

[osh stdout] Expected ' i i 3\nsi i 3\n i si 3\n---\n f f 1.0\nsf f 1.0\n f sf 1.0\n---\n i f 6.0\nsi f 6.0\n i sf 6.0\n---\n f i 2.5\nsf i 2.5\n f si 2.5\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 Floating Point Division with /

[osh stdout] Expected '20.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_
osh5 Operations That Convert to Integer: // % **

[osh stdout] Expected '2\n1\n25\n_status 3\n_status 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_
osh6 Division by zero

[osh stdout] Expected 'status / is 3\nstatus // is 3\nstatus % is 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_
osh7 Unary Operations

[osh stdout] Expected '-2\n-1\n-2.3\nfalse\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 unary minus on strings

[osh stdout] Expected '-3\n-4\n-5.5\n', got ''
[osh status] Expected 3, 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 unary ~ complement on strings

[osh stdout] Expected '-1\n-2\n-3\n', got ''
[osh status] Expected 3, 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 unary ~ doesn't work on bool

[osh status] Expected 3, 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_
osh11 unary ~ doesn't work on float

[osh status] Expected 3, 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_
osh12 unary - applied to bool is not allowed

[osh status] Expected 3, 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_
osh13 Big float constants becomes inf and -inf, tiny become 0.0 and -0.0

[osh stdout] Expected '(Float) 0.12345\nfloat=0\n(Float) INFINITY\n(Float) -INFINITY\nfloat=0\n(Float) 0.0\n(Float) -0.0\nfloat=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_
osh14 Int constants bigger than 64 bits

[osh stdout] Expected '(Int) 1111\ndec=0\ndec=2\n(Int) 3\nbin=0\nbin=2\n(Int) 63\noct=0\noct=2\n(Int) 255\nhex=0\nhex=2\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_
osh15 Bit shift by negative number is not allowed

[osh stdout] Expected '(Int) 2\n(Int) 1\nfailed 3\n\n(Int) 4\n(Int) 8\n(Int) 16\nfailed 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_
osh16 64-bit operations

[osh stdout] Expected 'i = 4294967296, s = 4294967296\nequal\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_
osh17 64-bit integer doesn't overflow

[osh stdout] Expected '2147483648\n4294967296\n6442450944\nmax positive = 9223372036854775807\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_
osh18 Integer literals

[osh stdout] Expected '123 3 83 255\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_
osh19 Integer literals with underscores

[osh stdout] Expected 'SHELL\n65536\n21\n1005\n65551\nsum 40\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_
osh20 Exponentiation with **

[osh stdout] Expected '8\n', got ''
[osh status] Expected 3, 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_
osh21 Float Division

[osh stdout] Expected '(Float) 2.5\n(Float) -2.5\n(Float) -2.5\n(Float) 2.5\n---\n(Float) 4.5\n(Float) -4.5\n(Float) -4.5\n(Float) 4.5\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_
osh22 Integer Division (rounds toward zero)

[osh stdout] Expected '(Int) 2\n(Int) -2\n(Int) -2\n(Int) 2\n---\n(Int) 4\n(Int) -4\n(Int) -4\n(Int) 4\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_
osh23 % operator is remainder

[osh stdout] Expected '(Int) 2\n(Int) -2\n(Int) 1\n(Int) -1\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_
osh24 Bitwise logical

[osh stdout] Expected '1\n7\n6\n-8\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_
osh25 Shift operators

[osh stdout] Expected '16\n1\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_
osh26 multiline strings, list, tuple syntax for list, etc.

[osh stdout] Expected 'dq=6\nsq=6\nmylist=3\nmytuple=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_