Results for ysh-json.test.sh

statusosh
FAIL 63
total63
caseoshdescription
0FAIL usage errors
details
1FAIL json write STRING
details
2FAIL json write ARRAY
details
3FAIL json write Dict
details
4FAIL json write space=0, space=4
details
5FAIL json write in command sub
details
6FAIL json read passed invalid args
details
7FAIL json read uses $_reply var
details
8FAIL json read then json write
details
9FAIL json read with redirect
details
10FAIL json read at end of pipeline (relies on lastpipe)
details
11FAIL invalid JSON
details
12FAIL Extra data after valid JSON
details
13FAIL json write expression
details
14FAIL json write evaluation error
details
15FAIL json write of List in cycle
details
16FAIL json write of Dict in cycle
details
17FAIL json write of List/Dict referenced twice (bug fix)
details
18FAIL json read doesn't accept u'' or b'' strings
details
19FAIL json read doesn't accept comments, but json8 does
details
20FAIL json write emits Unicode replacement char for binary data \yff
details
21FAIL json8 accepts j"" prefix, but json doesn't
details
22FAIL j"" prefix not accepted in YSH (could be added later)
details
23FAIL json8 write emits b'' strings for binary data \yff
details
24FAIL json8 write bytes vs unicode string
details
25FAIL JSON \/ escapes supported
details
26FAIL JSON string can have unescaped ' and J8 string can have unescaped "
details
27FAIL J8 supports superfluous \" escapes, but JSON doesn't support \' escapes
details
28FAIL Escaping uses \u0001 in "", but \u{1} in b''
details
29FAIL json8 read
details
30FAIL json8 round trip
details
31FAIL json round trip (regression)
details
32FAIL round trip: decode surrogate pair and encode
details
33FAIL round trip: decode surrogate half and encode
details
34FAIL toJson() toJson8()
details
35FAIL fromJson() fromJson8()
details
36FAIL User can handle errors - toJson() toJson8()
details
37FAIL User can handle errors - fromJson() fromJson8()
details
38FAIL ASCII control chars can't appear literally in messages
details
39FAIL \yff can't appear in u'' code strings (command)
details
40FAIL \yff can't appear in u'' code strings (expr)
details
41FAIL \yff can't appear in u'' multiline code strings
details
42FAIL \yff can't appear in u'' data strings
details
43FAIL \u{dc00} can't be in surrogate range in code (command)
details
44FAIL \u{dc00} can't be in surrogate range in code (expr)
details
45FAIL \u{dc00} can't be in surrogate range in data
details
46FAIL Inf is encoded as null, like JavaScript
details
47FAIL NaN is encoded as null, like JavaScript
details
48FAIL Invalid UTF-8 in JSON is rejected
details
49FAIL Invalid JSON in J8 is rejected
details
50FAIL '' means the same thing as u''
details
51FAIL decode integer larger than 2^32
details
52FAIL decode integer larger than 2^64
details
53FAIL round trip: read/write with ysh
details
54FAIL round trip: read/write with ysh, read/write with Python 3 (bug regression)
details
55FAIL Encoding bytes that don't hit UTF8_REJECT immediately (bug fix)
details
56FAIL NIL8 token in JSON / JSON8
details
57FAIL Data after internal NUL (issue #2026)
details
58FAIL Float too big
details
59FAIL Many [[[ , but not too many
details
60FAIL Too many opening [[[ - blocking stack
details
61FAIL BashArray can be serialized
details
62FAIL BashAssoc can be serialized
details
0 passed, 0 OK, 0 not implemented, 0 BUG, 63 failed, 0 timeouts, 0 cases skipped
63 failed under osh

Details on runs that didn't PASS

osh0 usage errors

[osh stdout] Expected 'status=2\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 json write STRING

[osh stdout] Expected '"foo"\n"foo"\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 json write ARRAY

[osh stdout] Expected '[\n "foo.cc",\n "foo.h"\n]\n["foo.cc","foo.h"]\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 json write Dict

[osh stdout] Expected '{\n "k": "v",\n "k2": [\n 4,\n 5\n ]\n}\n[\n {\n "k": "v",\n "k2": "v2"\n },\n {}\n]\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 json write space=0, space=4

[osh stdout] Expected '{"name":"bob","age":30}\n{\n "name": "bob",\n "age": 30\n}\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 json write in command sub

[osh stdout] Expected '{\n "name": "bob",\n "age": 30\n}\n{\n "name": "bob",\n "age": 30\n}\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 json read passed invalid args

[osh stdout] Expected 'status=1\nstatus=2\nstatus=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_
osh7 json read uses $_reply var

[osh stdout] Expected 'true\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 json read then json write

[osh stdout] Expected '{\n "name": "bob",\n "age": 42,\n "ok": true\n}\n{\n "name": "bob",\n "age": 42,\n "ok": true\n}\n{\n "name": {},\n "age": {},\n "x": -1,\n "y": 0\n}\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_
osh9 json read with redirect

[osh stdout] Expected 'x = (Cell exported:F readonly:F nameref:F val:(value.Dict d:[Dict age (value.Int i:42)]))\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_
osh10 json read at end of pipeline (relies on lastpipe)

[osh stdout] Expected 'y = (Cell exported:F readonly:F nameref:F val:(value.Dict d:[Dict age (value.Int i:43)]))\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_
osh11 invalid JSON

[osh stdout] Expected 'pipeline status = 1\n', got ''
[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 Extra data after valid JSON

[osh stdout] Expected 'num space 0\nobj space 0\nnum comment 0\nobj comment 0\nnum bracket 1\nobj bracket 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_
osh13 json write expression

[osh stdout] Expected '[1,2,3]\nstatus=0\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_
osh14 json write evaluation error

[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 json write of List in cycle

[osh stdout] Expected '(List) [[...],2,3]\nstatus=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_
osh16 json write of Dict in cycle

[osh stdout] Expected '(Dict) {"k":{...}}\nstatus=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_
osh17 json write of List/Dict referenced twice (bug fix)

[osh stdout] Expected '{"k":[1,2,3],"k2":[1,2,3],"k3":{"foo":"bar"},"k4":{"foo":"bar"}}\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 json read doesn't accept u'' or b'' strings

[osh stdout] Expected 'status=1\nstatus=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_
osh19 json read doesn't accept comments, but json8 does

[osh stdout] Expected 'status=0\n{\n "key": "val",\n "k2": "v2"\n}\nstatus=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_
osh20 json write emits Unicode replacement char for binary data \yff

[osh stdout] Expected '[\n 3,\n "foo",\n "-\xef\xbf\xbd\xef\xbf\xbd---\xef\xbf\xbd="\n]\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_
osh21 json8 accepts j"" prefix, but json doesn't

[osh stdout] Expected 'json=1\n\njson8=0\n(Str) "foo\\nbar"\n\njson8=0\n(Str) "A"\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 j"" prefix not accepted in YSH (could be added later)

[osh status] Expected 2, 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 json8 write emits b'' strings for binary data \yff

[osh stdout] Expected '[\n 3,\n "foo",\n b\'-\\yff\\yfe-\\yfd=\'\n]\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 json8 write bytes vs unicode string

[osh stdout] Expected '"mu \xce\xbc \\u0001 \\" \\\\ \\b\\f\\n\\r\\t"\n"\\u0001\\u001f"\nb\'\\yff\'\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 JSON \/ escapes supported

[osh stdout] Expected '/\nreply=/\nreply=/\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 JSON string can have unescaped ' and J8 string can have unescaped "

[osh stdout] Expected '(Str) "\'"\n(Str) "\\""\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_
osh27 J8 supports superfluous \" escapes, but JSON doesn't support \' escapes

[osh stdout] Expected 'reply="\n(Str) "\'\'\\b\\f\\n\\r\\t\\"\\\\"\npython3=1\njson=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_
osh28 Escaping uses \u0001 in "", but \u{1} in b''

[osh stdout] Expected '"\\u0001"\nb\'\\u{1}\\yff\\u{1f}\'\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_
osh29 json8 read

[osh stdout] Expected '(Dict) {}\n(List) []\n(List) [42]\n(List) [true,false]\n(Dict) {"k":"v"}\n(Dict) {"k":null}\n(Dict) {"k":1,"k2":2}\n(Dict) {"k":{"k2":null}}\n(Dict) {"k":{"k2":"v2"},"k3":"backslash \\\\ \\" \\n line 2 \xce\xbc "}\n(Dict) {"k":{"k2":"v2"},"k3":"backslash \\\\ \\" \\n line 2 \xce\xbc "}\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_
osh30 json8 round trip

[osh stdout] Expected '[42,1.5,null,true,"hi",b\'\\yff\\yfe\\b\\n""\']\n[\n 42,\n 1.5,\n null,\n true,\n "hi",\n b\'\\yff\\yfe\\b\\n""\'\n]\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_
osh31 json round trip (regression)

[osh stdout] Expected '(Dict) {"short":"-v","long":"--verbose","type":null,"default":"","help":"Enable verbose logging"}\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_
osh32 round trip: decode surrogate pair and encode

[osh stdout] Expected '"\xf0\x9f\xa4\xa6"\n"\xf0\x9f\xa4\xa6"\n"\\u0001\\u0002"\n"\xc4\x80\xc4\x81\xc4\x82"\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_
osh33 round trip: decode surrogate half and encode

[osh stdout] Expected '"\\ud83e"\n(Str) b\'\\yed\\ya0\\ybe\'\njson "\\ud83e"\njson8 b\'\\yed\\ya0\\ybe\'\n\n"\\udd26"\n(Str) b\'\\yed\\yb4\\ya6\'\njson "\\udd26"\njson8 b\'\\yed\\yb4\\ya6\'\n\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_
osh34 toJson() toJson8()

[osh stdout] Expected '[42,1.5,null,true,"hi","\xef\xbf\xbd"]\n[42,1.5,null,true,"hi",b\'\\yf0\']\n[3,4]\n[3,4]\n[\n 3,\n 4\n]\n[\n 3,\n 4\n]\n[3,4]\n[3,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_
osh35 fromJson() fromJson8()

[osh stdout] Expected '(List) [42,1.5,null,true,"hi"]\n(List) [42,1.5,null,true,"hi"]\n(List) [42,1.5,null,true,"hi",""]\n' Got ''
[osh status] Expected 4, 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_
osh36 User can handle errors - toJson() toJson8()

[osh stdout] Expected "status=4\nencode error Can't encode List (object id) in object cycle\nstatus=4\nencode error Can't serialize object of type Eggex\n" Got ''
[osh status] Expected 4, 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_
osh37 User can handle errors - fromJson() fromJson8()

[osh stdout] Expected 'status=4\ndecode error Expected Id.J8_RBracket\nstatus=4\ndecode error Expected Id.J8_RBracket\npositions 1 - 2\n' Got ''
[osh status] Expected 4, 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_
osh38 ASCII control chars can't appear literally in messages

[osh stdout] Expected 'status=4\nASCII control chars\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_
osh39 \yff can't appear in u'' code strings (command)

[osh stdout] Expected ' fd\n', got ''
[osh status] Expected 2, 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_
osh40 \yff can't appear in u'' code strings (expr)

[osh stdout] Expected ' fe\n', got ''
[osh status] Expected 2, 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_
osh41 \yff can't appear in u'' multiline code strings

[osh stdout] Expected ' fc\n', got ''
[osh status] Expected 2, 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_
osh42 \yff can't appear in u'' data strings

[osh stdout] Expected "(Str) b'\\yfe'\n", got ''
[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_
osh43 \u{dc00} can't be in surrogate range in code (command)

[osh status] Expected 2, 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_
osh44 \u{dc00} can't be in surrogate range in code (expr)

[osh status] Expected 2, 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_
osh45 \u{dc00} can't be in surrogate range in data

[osh stdout] Expected 'status=0\nstatus=1\nstatus=1\nstatus=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_
osh46 Inf is encoded as null, like JavaScript

[osh stdout] Expected '(Float) INFINITY\n(Float) -INFINITY\n--\nnull\nerror=0\nnull\nerror=0\n--\nnull\nnull\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_
osh47 NaN is encoded as null, like JavaScript

[osh stdout] Expected '(Float) NAN\nnull\nnull\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_
osh48 Invalid UTF-8 in JSON is rejected

[osh stdout] Expected 'status=1\nstatus=1\nstatus=1\nstatus=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_
osh49 Invalid JSON in J8 is rejected

[osh stdout] Expected 'status=1\nstatus=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_
osh50 '' means the same thing as u''

[osh stdout] Expected '(Str) ""\n(Str) "\xce\xbc"\nstatus=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_
osh51 decode integer larger than 2^32

[osh stdout] Expected '8589934592\n(Int) 8589934592\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_
osh52 decode integer larger than 2^64

[osh stdout] Expected 'status=1\nstatus=1\nok\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_
osh53 round trip: read/write with ysh

[osh stdout] Expected 'diff=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_
osh54 round trip: read/write with ysh, read/write with Python 3 (bug regression)

[osh stdout] Expected 'diff=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_
osh55 Encoding bytes that don't hit UTF8_REJECT immediately (bug fix)

[osh stdout] Expected "b'\\yce'\ndeclare -- x=$'\\xce'\n\nb'\\ybc'\ndeclare -- y=$'\\xbc'\n\nb'\\yf0\\y9f\\ya4\\yff'\ndeclare -- z=$'\\xf0\\x9f\\xa4\\xff'\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_
osh56 NIL8 token in JSON / JSON8

[osh stdout] Expected 'status=1\nstatus=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_
osh57 Data after internal NUL (issue #2026)

[osh stdout] Expected 'status=4\nstatus=4\nstatus=1\nstatus=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_
osh58 Float too big

[osh stdout] Expected 'status=0\n(Float) INFINITY\nstatus=0\n(Float) -INFINITY\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_
osh59 Many [[[ , but not too many

[osh stdout] Expected '(List) [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]\nlen=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_
osh60 Too many opening [[[ - blocking stack

[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_
osh61 BashArray can be serialized

[osh stdout] Expected '{\n "type": "BashArray",\n "data": {}\n}\n{\n "type": "BashArray",\n "data": {\n "0": "x",\n "1": "y",\n "5": "z"\n }\n}\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_
osh62 BashAssoc can be serialized

[osh stdout] Expected '{\n "type": "BashAssoc",\n "data": {}\n}\n{\n "type": "BashAssoc",\n "data": {\n "foo": "bar",\n "42": "43"\n }\n}\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_