Results for ysh-dict.test.sh

statusosh
pass 4
FAIL 3
total7
caseoshdescription
0pass "in" and "not in" on Dicts
1FAIL dict with 'bare word' keys
details
2FAIL dict with expression keys
details
3FAIL dict literal with implicit value
details
4pass Dict literal with string keys
5pass keys(d), values(d), get(d, key)
6pass get() has default null
4 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh1 dict with 'bare word' keys

[osh stdout] Expected 'len=0\nlen=1\nlen=2\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo len=$[len(d0)]
                ^
[ stdin ]:2: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
osh2 dict with expression keys

[osh stdout] Expected 'len=1\nhello\nlen=1\nbar\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo len=$[len(d1)]
                ^
[ stdin ]:2: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)
osh3 dict literal with implicit value

[osh stdout] Expected 'len=1\nfoo\nlen=2\nfoo\n' Got ''
[osh status] Expected 0 Got 2

stdout:
stderr: 
  echo len=$[len(d1)]
                ^
[ stdin ]:3: Unexpected token after arithmetic expression (Id.Arith_LParen != Id.Arith_RBracket)