Results for ysh-dict.test.sh

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

Details on runs that didn't PASS

osh0 "in" and "not in" on Dicts

[osh stdout] Expected 'true\nfalse\ntrue\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_
osh1 dict with 'bare word' keys

[osh stdout] Expected 'len=0\nlen=1\nlen=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 dict with expression keys

[osh stdout] Expected 'len=1\nhello\nlen=1\nbar\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 dict literal with implicit value

[osh stdout] Expected 'len=1\nfoo\nlen=2\nfoo\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 Dict literal with string keys

[osh stdout] Expected '123\n456\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 keys(d), values(d), get(d, key)

[osh stdout] Expected '(List) ["a","b"]\n(List) [42,99]\n(Int) 42\n(Str) "default"\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 get() has default null

[osh stdout] Expected '(Null) null\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_