Results for ysh-expr-arith.test.sh

statusosh
FAIL 30
total30
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 plus on integers and floats
details
9FAIL unary plus and minus combined
details
10FAIL unary minus on strings
details
11FAIL unary plus on strings
details
12FAIL unary ~ complement on strings
details
13FAIL unary ~ doesn't work on bool
details
14FAIL unary ~ doesn't work on float
details
15FAIL unary - applied to bool is not allowed
details
16FAIL Big float constants becomes inf and -inf, tiny become 0.0 and -0.0
details
17FAIL Int constants bigger than 64 bits
details
18FAIL Bit shift by negative number is not allowed
details
19FAIL 64-bit operations
details
20FAIL 64-bit integer doesn't overflow
details
21FAIL Integer literals
details
22FAIL Integer literals with underscores
details
23FAIL Exponentiation with **
details
24FAIL Float Division
details
25FAIL Integer Division (rounds toward zero)
details
26FAIL % operator is remainder
details
27FAIL Bitwise logical
details
28FAIL Shift operators
details
29FAIL multiline strings, list, tuple syntax for list, etc.
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 30 failed, 0 timeouts, 0 cases skipped
30 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh8 Unary plus on integers and floats

[osh stdout] Expected '1\n42\n2.5\n-10\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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh9 unary plus and minus combined

[osh stdout] Expected '-5\n-5\n-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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh10 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh11 unary plus on strings

[osh stdout] Expected '3\n4\n5.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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh12 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh13 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh14 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh15 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh16 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh17 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh18 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh19 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh20 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh21 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh22 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh23 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh24 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh25 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh26 % 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh27 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh28 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value
osh29 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 27, in <module>
    from core import shell
  File "/home/uke/oil/core/shell.py", line 40, in <module>
    from builtin import dirs_osh
  File "/home/uke/oil/builtin/dirs_osh.py", line 16, in <module>
    from core import value
ImportError: cannot import name value