Results for ysh-string.test.sh

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

Details on runs that didn't PASS

ysh0 Unquoted backslash escapes, as in J8 strings

[ysh stdout] Expected '(Str) "\\n"\n(Str) "\\t"\n(Str) "\\r"\n(Str) "\\"\'\\\\"\nbackslash \\\nbackslash \\\n' Got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh1 Unquoted \u{3bc} escape

[ysh stdout] Expected 'mu \xce\xbc\nmu \xce\xbc\nmu \xce\xbc\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh2 Unquoted \y24 escape

[ysh stdout] Expected 'foo $\n36\nfoo @\nfoo A\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh3 single quoted -- implicit and explicit raw

[ysh stdout] Expected 'foo bar\nfoo bar\n\\t\\n\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh4 Implicit raw single quote with backslash is a syntax error

[ysh status] Expected 2, got 1
[ysh 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_
ysh5 $"foo $x" to make "foo $x" explicit

[ysh stdout] Expected 'foo bar\nequal\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh6 single quoted C strings: $'foo\n'

[ysh stdout] Expected 'foo\nbar\nequal\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh7 raw strings and J8 strings don't work in OSH

[ysh stdout] Expected 'rhello \\\numu \\u{3bc}\nbbyte \\yff\n--\nr\nraw multi\n\nu\nu multi\n\nb\nb multi\n\n' Got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh8 J8-style u'' and b'' strings in expression mode

[ysh stdout] Expected ' ce bc\n ff\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh9 J8-style u'' and b'' strings in command mode

[ysh stdout] Expected ' ce bc\n ff\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh10 J8-style multi-line strings u''' b''' in command mode

[ysh stdout] Expected '--\na\n--\n--\nb\n--\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh11 Double Quoted

[ysh stdout] Expected 'Hello World\nHello World\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh12 Multiline strings with '' and ""

[ysh stdout] Expected '\n single\n\n\n double 42\n\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh13 C strings in :| | array literals

[ysh stdout] Expected 'aa\tbb\ncc\tdd\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh14 shopt parse_ysh_string

[ysh stdout] Expected '\\\nr\n\nend\nra\\\nraw\\\nr\\\nunset\nr\\\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh15 Special rule for <<< ''' and <<< """ - no extra newline

[ysh stdout] Expected '(Str) "unquoted\\n"\n(Str) "single with newline\\n"\n(Str) "double with newline\\n"\n(Str) "j8 with newline\\n"\n\n(Str) "multi\\nsingle\\n"\n(Str) "multi\\ndouble\\n"\n(Str) "multi\\nj8\\n"\n' Got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh16 $''' isn't a a multiline string (removed)

[ysh stdout] Expected '\n foo\n \n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh17 """ and $""" in Expression Mode

[ysh stdout] Expected 'line1=line1\nline2=line2\n[one "\ntwo = 2 ""\n three = 3\n]\n[good\n bad 42\n]\n[good\n bad 42\n]\n' Got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh18 ''' in Expression Mode

[ysh stdout] Expected "[two = $two '\nthree = $three ''\n \\u{61}\n]\n[two = $two '\nthree = $three ''\n a\n]\n[two = $two '\nthree = $three ''\n a a\n]\n" Got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh19 """ and $""" in Command Mode

[ysh stdout] Expected 'a\n--\none "\ntwo = 2 ""\nthree = 3\n\n--\none "\ntwo = 2 ""\nthree = 3\n\n--\nthree = 3\ntwo = 2 ""\none "\n--\n\n one\n two = 2\n three = 3\n \n' Got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh20 ''' in Command Mode

[ysh stdout] Expected "a\n--\ntwo = $two\n'\n'' '\n\\u{61}\n\n", got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh21 r''' in Command Mode, Expression mode

[ysh stdout] Expected '\\\n\\\nr\\\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh22 ''' in Here Doc

[ysh stdout] Expected "\\u{61}\n'' '\n'\ntwo = $two\n", got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh23 ''' without parse_triple_quote

[ysh stdout] Expected '\n two = $two\n \\u{61}\n \n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh24 here doc with quotes

[ysh stdout] Expected '"hello"\n""\n"""\n', got ''
[ysh status] Expected 0, got 1
[ysh 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_
ysh25 triple quoted and implicit concatenation

[ysh status] Expected 2, got 1
[ysh 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_