Results for oil-slice-range.test.sh

statusoshosh-cpp
pass 100
FAIL 212
total1212
caseoshosh-cppdescription
0pass FAIL ranges have higher precedence than comparison (disabled)
details
1pass FAIL ranges have lower precedence than bitwise operators
details
2pass FAIL subscript and range of array
details
3pass FAIL subscript and range of list
details
4pass FAIL expressions and negative indices
details
5pass FAIL Explicit slice with step
details
6pass FAIL Index with a Tuple
details
7pass FAIL Index with expression
details
8pass FAIL Copy wtih a[:]
details
9FAIL FAIL Slices with Multiple Dimensions (for QTT)
detailsdetails
10FAIL FAIL Index a list with a range, not a slice. TODO: Figure out semantics
detailsdetails
11pass FAIL Range with list constructor
details
10 passed, 0 OK, 0 not implemented, 0 BUG, 14 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh-cpp0 ranges have higher precedence than comparison (disabled)

[osh-cpp stdout] Expected '(xrange) xrange(1, 3)\n', got ''

stdout:
stderr: 
osh-cpp1 ranges have lower precedence than bitwise operators

[osh-cpp stdout] Expected '(xrange) xrange(3, 7)\n', got ''

stdout:
stderr: 
osh-cpp2 subscript and range of array

[osh-cpp stdout] Expected "(Str) '2'\n(List) ['2', '3']\nimplicit\n(List) ['1', '2']\n(List) ['3', '4']\n" Got 'implicit\n'

stdout:
implicit
stderr:
osh-cpp3 subscript and range of list

[osh-cpp stdout] Expected '(Int) 2\n(List) [2, 3]\nimplicit\n(List) [1, 2]\n(List) [3, 4]\n' Got 'implicit\n'

stdout:
implicit
stderr:
osh-cpp4 expressions and negative indices

[osh-cpp stdout] Expected "(Str) '5'\n(List) ['2', '3']\nimplicit\n(List) ['1', '2', '3']\n(List) ['4', '5']\n" Got 'implicit\n'

stdout:
implicit
stderr:
osh-cpp5 Explicit slice with step

[osh-cpp stdout] Expected '1\n3\n5\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  write @x
        ^~
[ stdin ]:4: fatal: Can't splice 'x'
osh-cpp6 Index with a Tuple

[osh-cpp stdout] Expected 'foo\nfoo\n', got '\n\n'

stdout:

stderr:
osh-cpp7 Index with expression

[osh-cpp stdout] Expected '3\n', got '\n'

stdout:
stderr: 
osh-cpp8 Copy wtih a[:]

[osh-cpp stdout] Expected '(List) [1, 2, 3]\n', got ''

stdout:
stderr: 
osh9 Slices with Multiple Dimensions (for QTT)

[osh stdout] Expected "(Str) 'TODO: Table Slicing'\n(Str) 'TODO: Table Slicing'\n" Got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
  qtt pretty :mytable <<< '''
  ^~~
[ stdin ]:1: 'qtt' not found
  var t1 = mytable[2:, :]
           ^~~~~~~
[ stdin ]:8: fatal: Undefined variable 'mytable'
osh-cpp9 Slices with Multiple Dimensions (for QTT)

[osh-cpp stdout] Expected "(Str) 'TODO: Table Slicing'\n(Str) 'TODO: Table Slicing'\n" Got ''

stdout:
stderr: 
  qtt pretty :mytable <<< '''
  ^~~
[ stdin ]:1: 'qtt' not found
osh10 Index a list with a range, not a slice. TODO: Figure out semantics

[osh stdout] Expected 'TODO\n', got ''

stdout:
stderr: 
  var myslice = mylist[r]
  ^~~
[ stdin ]:4: fatal: Type error in expression: list indices must be integers, not xrange
osh-cpp10 Index a list with a range, not a slice. TODO: Figure out semantics

[osh-cpp stdout] Expected 'TODO\n', got ''
[osh-cpp status] Expected 3, got 0

stdout:
stderr: 
osh-cpp11 Range with list constructor

[osh-cpp stdout] Expected '0\n1\n2\n', got ''
[osh-cpp status] Expected 0, got 1

stdout:
stderr: 
  write @mylist
        ^~~~~~~
[ stdin ]:3: fatal: Can't splice 'mylist'