Results for oil-builtins.test.sh

statusosh
pass 30
FAIL 4
total34
caseoshdescription
0pass append onto a=(1 2)
1pass append onto var a = %(1 2)
2pass append onto var a = ['1', '2']
3pass append with invalid type
4pass append with invalid var name
5pass write --sep, --end, -n, varying flag syntax
6pass write --qsn
7pass write --qsn --unicode
8pass write -e not supported
9pass write syntax error
10pass write --
11pass read flag usage
12pass read :x :y is allowed
13pass Idiom for returning 'read'
14pass read --line --with-eol
15pass read --line --qsn
16FAIL read --line --qsn accepts optional $''
details
17pass read --line --with-eol --qsn
18pass read --qsn usage
19FAIL read --all-lines
details
20FAIL read --all-lines --with-eol
details
21FAIL read --all-lines --qsn --with-eol
details
22pass read --all
23pass read --line from directory is an error (EISDIR)
24pass read --all from directory is an error (EISDIR)
25pass read -0 is like read -r -d ''
26pass simple_test_builtin
27pass long flags to test
28pass push-registers
29pass push-registers usage
30pass module
31pass runproc
32pass runproc typed args
33pass fopen
30 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

osh16 read --line --qsn accepts optional $''

[osh stdout] Expected 'foo\n', got "$'foo'\n"

stdout:
$'foo'
stderr:
osh19 read --all-lines

[osh stdout] Expected '1 2 3\n', got '@nums\n'

stdout:
@nums
stderr:
  seq 3 | read --all-lines :nums
               ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'
osh20 read --all-lines --with-eol

[osh stdout] Expected '1\n2\n3\n', got '@nums\n'

stdout:
@nums
stderr:
  seq 3 | read --all-lines --with-eol :nums
               ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'
osh21 read --all-lines --qsn --with-eol

[osh stdout] Expected 'foo\nbar\none\ntwo\n', got '@lines\n'

stdout:
@lines
stderr:
  read --all-lines --qsn --with-eol :lines << EOF
       ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'