Results for ysh-string.test.sh

statusyshysh-cpp
pass 179
FAIL 08
total1717
caseyshysh-cppdescription
0pass FAIL single quoted -- implicit and explicit raw
details
1pass pass Implicit raw single quote with backslash is a syntax error
2pass FAIL single quoted C strings: $'foo\n'
details
3pass FAIL Double Quoted
details
4pass FAIL Multiline strings with '' and ""
details
5pass FAIL C strings in %() array literals
details
6pass pass shopt parse_raw_string
7pass FAIL Triple Double Quotes, Expression Mode
details
8pass FAIL Triple Single Quotes, Expression Mode
details
9pass FAIL Triple Double Quotes, Command Mode
details
10pass pass raw strings and triple quotes
11pass pass Triple Single Quotes, Command Mode
12pass pass Triple Single Quotes, Here Doc
13pass pass Triple Single Quotes, disabled
14pass pass $''' in command mode
15pass pass here doc with quotes
16pass pass triple quoted and implicit concatenation
26 passed, 0 OK, 0 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

ysh-cpp0 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-cpp2 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-cpp3 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-cpp4 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-cpp5 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-cpp7 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-cpp8 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-cpp9 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'