spec test index / oilshell.org
104 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
osh | 25 JSON \/ escapes supported [osh stdout] Expected '/\nreply=/\nreply=/\n', got 'reply=/\nreply=/\n' stdout: reply=/ reply=/stderr: echo "$msg" | python3 -c 'import json, sys; print(json.load(sys.stdin))' ^~~~~~~ [ stdin ]:3: 'python3' not found (OILS-ERR-100) |
osh_ALT | 25 JSON \/ escapes supported [osh_ALT stdout] Expected '/\nreply=/\nreply=/\n', got 'reply=/\nreply=/\n' stdout: reply=/ reply=/stderr: echo "$msg" | python3 -c 'import json, sys; print(json.load(sys.stdin))' ^~~~~~~ [ stdin ]:3: 'python3' not found (OILS-ERR-100) |
osh | 27 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 'reply="\n(Str) "\'\'\\b\\f\\n\\r\\t\\"\\\\"\npython3=127\njson=1\n' stdout: reply=" (Str) "''\b\f\n\r\t\"\\" python3=127 json=1stderr: json read <<'EOF' ^~~~ [ stdin ]:16: json read: Bad backslash escape in JSON string (line 1, offset 0-2: '"\\\'"\n') |
osh_ALT | 27 J8 supports superfluous \" escapes, but JSON doesn't support \' escapes [osh_ALT stdout] Expected 'reply="\n(Str) "\'\'\\b\\f\\n\\r\\t\\"\\\\"\npython3=1\njson=1\n' Got 'reply="\n(Str) "\'\'\\b\\f\\n\\r\\t\\"\\\\"\npython3=127\njson=1\n' stdout: reply=" (Str) "''\b\f\n\r\t\"\\" python3=127 json=1stderr: json read <<'EOF' ^~~~ [ stdin ]:16: json read: Bad backslash escape in JSON string (line 1, offset 0-2: '"\\\'"\n') |
osh | 46 Inf and NaN can't be encoded or decoded [osh status] Expected 2, got 3 stdout: stderr: var n = float("NaN") ^ [ stdin ]:1: fatal: Cannot convert NaN to Float |
osh_ALT | 46 Inf and NaN can't be encoded or decoded [osh_ALT status] Expected 2, got 3 stdout: stderr: var n = float("NaN") ^ [ stdin ]:1: fatal: Cannot convert NaN to Float |
osh | 53 round trip: read/write with ysh, read/write with Python 3 (bug regression) [osh stdout] Expected 'diff=0\n', got '--- /home/uke/oil/spec/testdata/bug.json\t2024-06-29 02:31:19.446219145 +0000\n+++ py-json\t2024-06-29 02:37:02.061236975 +0000\n@@ -1,25 +0,0 @@\n-{\n- "files": {\n- "etc": {},\n- "sw": {}\n- },\n- "modules": {\n- "mergePath": {\n- "enable": true\n- },\n- "shareNftables": {\n- "enable": true\n- },\n- "shareSystemd": {\n- "enable": true,\n- "replace": [],\n- "units": [\n- "nftables.service",\n- "nix-unify-at-boot.service"\n- ]\n- },\n- "useNixDaemon": {\n- "enable": true\n- }\n- }\n-}\ndiff=1\n' stdout: --- /home/uke/oil/spec/testdata/bug.json 2024-06-29 02:31:19.446219145 +0000 +++ py-json 2024-06-29 02:37:02.061236975 +0000 @@ -1,25 +0,0 @@ -{ - "files": { - "etc": {}, - "sw": {} - }, - "modules": { - "mergePath": { - "enable": true - }, - "shareNftables": { - "enable": true - }, - "shareSystemd": { - "enable": true, - "replace": [], - "units": [ - "nftables.service", - "nix-unify-at-boot.service" - ] - }, - "useNixDaemon": { - "enable": true - } - } -} diff=1stderr: cat ysh-json | python3 -c \ ^~~~~~~ [ stdin ]:5: 'python3' not found (OILS-ERR-100) |
osh_ALT | 53 round trip: read/write with ysh, read/write with Python 3 (bug regression) [osh_ALT stdout] Expected 'diff=0\n', got '--- /home/uke/oil/test/../spec/testdata/bug.json\t2024-06-29 02:31:19.446219145 +0000\n+++ py-json\t2024-06-29 02:37:02.113236850 +0000\n@@ -1,25 +0,0 @@\n-{\n- "files": {\n- "etc": {},\n- "sw": {}\n- },\n- "modules": {\n- "mergePath": {\n- "enable": true\n- },\n- "shareNftables": {\n- "enable": true\n- },\n- "shareSystemd": {\n- "enable": true,\n- "replace": [],\n- "units": [\n- "nftables.service",\n- "nix-unify-at-boot.service"\n- ]\n- },\n- "useNixDaemon": {\n- "enable": true\n- }\n- }\n-}\ndiff=1\n' stdout: --- /home/uke/oil/test/../spec/testdata/bug.json 2024-06-29 02:31:19.446219145 +0000 +++ py-json 2024-06-29 02:37:02.113236850 +0000 @@ -1,25 +0,0 @@ -{ - "files": { - "etc": {}, - "sw": {} - }, - "modules": { - "mergePath": { - "enable": true - }, - "shareNftables": { - "enable": true - }, - "shareSystemd": { - "enable": true, - "replace": [], - "units": [ - "nftables.service", - "nix-unify-at-boot.service" - ] - }, - "useNixDaemon": { - "enable": true - } - } -} diff=1stderr: cat ysh-json | python3 -c \ ^~~~~~~ [ stdin ]:5: 'python3' not found (OILS-ERR-100) |