Results for ysh-convert.test.sh

statusosh
pass 6
FAIL 6
total12
caseoshdescription
0FAIL bool() conversion
details
1pass bool() more
2FAIL int() conversion
details
3pass int() more
4FAIL float() conversion
details
5pass float() overflow / underflow
6FAIL str() conversion
details
7pass dict() converts from BashAssoc to Dict
8FAIL dict() does shallow copy
details
9FAIL list() does shallow copy
details
10pass list() from Dict
11pass list() from range
6 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped
6 failed under osh

Details on runs that didn't PASS

osh0 bool() conversion

[osh stdout] Expected 'true\nfalse\ntrue\ntrue\ntrue\nfalse\nfalse\nfalse\ntrue\ntrue\ntrue\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo "$[bool(1234)]"
              ^
[ stdin ]:1: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
osh2 int() conversion

[osh stdout] Expected '1234\n1234\n1\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo "$[int(1234)]"
             ^
[ stdin ]:1: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
osh4 float() conversion

[osh stdout] Expected '1234.0\n1.234\n2.345\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo "$[float(1234)]"
               ^
[ stdin ]:1: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
osh6 str() conversion

[osh stdout] Expected '1234\n1.234\nfoo\n\ntrue\nnull\n[[:digit:]]+\n' Got ''
[osh status] Expected 3 Got 2

stdout:
stderr: 
  echo $[str(1234)]
            ^
[ stdin ]:1: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
osh8 dict() does shallow copy

[osh stdout] Expected 'true\nfalse\ntrue\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo $['b' in d] # d2 should be an alias for d
             ^~
[ stdin ]:4: Unexpected token after arithmetic expression (Id.Word_Compound != Id.Arith_RBracket)
osh9 list() does shallow copy

[osh stdout] Expected '2\n2\n3\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo $[len(l)] # d2 should be an alias for d
            ^
[ stdin ]:4: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)