Results for ysh-string.test.sh

statusysh
pass 24
FAIL 2
total26
caseyshdescription
0pass Unquoted backslash escapes, as in J8 strings
1pass Unquoted \u{3bc} escape
2pass Unquoted \y24 escape
3pass single quoted -- implicit and explicit raw
4pass Implicit raw single quote with backslash is a syntax error
5pass $"foo $x" to make "foo $x" explicit
6pass single quoted C strings: $'foo\n'
7pass raw strings and J8 strings don't work in OSH
8pass J8-style u'' and b'' strings in expression mode
9pass J8-style u'' and b'' strings in command mode
10pass J8-style multi-line strings u''' b''' in command mode
11pass Double Quoted
12pass Multiline strings with '' and ""
13pass C strings in :| | array literals
14FAIL shopt parse_ysh_string
details
15pass Special rule for <<< ''' and <<< """ - no extra newline
16pass $''' isn't a a multiline string (removed)
17pass """ and $""" in Expression Mode
18pass ''' in Expression Mode
19pass """ and $""" in Command Mode
20pass ''' in Command Mode
21FAIL r''' in Command Mode, Expression mode
details
22pass ''' in Here Doc
23pass ''' without parse_triple_quote
24pass here doc with quotes
25pass triple quoted and implicit concatenation
24 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

ysh14 shopt parse_ysh_string

[ysh stdout] Expected '\\\nr\n\nend\nunset\nr\\\n', got '\\\nr\n\nend\n'
[ysh status] Expected 0, got 2

stdout:
\
r

end
stderr:
  write unset r'\'
               ^
[ stdin ]:6: Invalid quoted word part in YSH (OILS-ERR-17)
ysh21 r''' in Command Mode, Expression mode

[ysh stdout] Expected '\\\n\\\nr\\\n', got '\\\n\\\n'
[ysh status] Expected 0, got 2

stdout:
\
\
stderr:
  echo r'''\'''
             ^
[ stdin ]:8: Invalid quoted word part in YSH (OILS-ERR-17)