spec test index / oilshell.org
status | ysh | ysh-cpp | |
pass | 17 | 9 | |
FAIL | 0 | 8 | |
total | 17 | 17 | |
case | ysh | ysh-cpp | description |
0 | pass | FAIL | single quoted -- implicit and explicit raw |
details | |||
1 | pass | pass | Implicit raw single quote with backslash is a syntax error |
2 | pass | FAIL | single quoted C strings: $'foo\n' |
details | |||
3 | pass | FAIL | Double Quoted |
details | |||
4 | pass | FAIL | Multiline strings with '' and "" |
details | |||
5 | pass | FAIL | C strings in %() array literals |
details | |||
6 | pass | pass | shopt parse_raw_string |
7 | pass | FAIL | Triple Double Quotes, Expression Mode |
details | |||
8 | pass | FAIL | Triple Single Quotes, Expression Mode |
details | |||
9 | pass | FAIL | Triple Double Quotes, Command Mode |
details | |||
10 | pass | pass | raw strings and triple quotes |
11 | pass | pass | Triple Single Quotes, Command Mode |
12 | pass | pass | Triple Single Quotes, Here Doc |
13 | pass | pass | Triple Single Quotes, disabled |
14 | pass | pass | $''' in command mode |
15 | pass | pass | here doc with quotes |
16 | pass | pass | triple quoted and implicit concatenation |
26 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
ysh-cpp | 0 single quoted -- implicit and explicit raw [ysh-cpp stdout] Expected 'foo bar\nfoo bar\n\\t\\n\n', got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: echo $x ^~ [ stdin ]:2: fatal: Undefined variable 'x' |
ysh-cpp | 2 single quoted C strings: $'foo\n' [ysh-cpp stdout] Expected 'foo\nbar\nequal\n', got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: echo "$x" ^~ [ stdin ]:2: fatal: Undefined variable 'x' |
ysh-cpp | 3 Double Quoted [ysh-cpp stdout] Expected 'Hello World\nHello World\n', got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: echo "Hello $name" ^~~~~ [ stdin ]:4: fatal: Undefined variable 'name' |
ysh-cpp | 4 Multiline strings with '' and "" [ysh-cpp stdout] Expected '\n single\n\n\n double 42\n\n', got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: echo $single ^~~~~~~ [ stdin ]:10: fatal: Undefined variable 'single' |
ysh-cpp | 5 C strings in %() array literals [ysh-cpp stdout] Expected 'aa\tbb\ncc\tdd\n', got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: write @lines ^~~~~~ [ stdin ]:4: fatal: Can't splice 'lines' |
ysh-cpp | 7 Triple Double Quotes, Expression Mode [ysh-cpp stdout] Expected 'line1=line1\nline2=line2\n[one "\ntwo = 2 ""\n three = 3\n]\n[good\n bad\n]\n' Got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: echo line1=$line1 ^~~~~~ [ stdin ]:2: fatal: Undefined variable 'line1' |
ysh-cpp | 8 Triple Single Quotes, Expression Mode [ysh-cpp stdout] Expected "[two = $two '\nthree = $three ''\n \\u{61}\n]\n[two = $two '\nthree = $three ''\n a\n]\n" Got '' [ysh-cpp status] Expected 0, got 1 stdout: stderr: echo "[$x]" ^~ [ stdin ]:9: fatal: Undefined variable 'x' |
ysh-cpp | 9 Triple Double Quotes, Command Mode [ysh-cpp stdout] Expected 'a\n--\none "\ntwo = 2 ""\nthree = 3\n\n--\n\nthree = 3\ntwo = 2 ""\none "\n--\n\n one\n two = 2\n three = 3\n \n' Got 'a\n--\n' [ysh-cpp status] Expected 0, got 1 stdout: a --stderr: two = $two "" ^~~~ [ stdin ]:9: fatal: Undefined variable 'two' |