Results for ysh-slice-range.test.sh

statusosh
pass 6
FAIL 5
total11
caseoshdescription
0FAIL precedence of 1:3 vs comparison
details
1FAIL precedence of 1:3 vs bitwise operator
details
2pass subscript and range of array
3pass subscript and range of list
4pass expressions and negative indices
5pass Explicit slice with step
6pass Index with expression
7pass Copy wtih a[:]
8FAIL Slices with Multiple Dimensions (for QTT)
details
9FAIL Index a list with a range, not a slice. TODO: Figure out semantics
details
10FAIL List(0:3) should copy the list?
details
6 passed, 0 OK, 0 not implemented, 0 BUG, 5 failed, 0 timeouts, 0 cases skipped
5 failed under osh

Details on runs that didn't PASS

osh0 precedence of 1:3 vs comparison

[osh stdout] Expected '(xrange) xrange(1, 3)\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
[??? no location ???] Ranges not implemented
osh1 precedence of 1:3 vs bitwise operator

[osh stdout] Expected '(xrange) xrange(3, 7)\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
[??? no location ???] Ranges not implemented
osh8 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 2

stdout:
stderr: 
  qtt pretty :mytable <<< '''
  ^~~
[ stdin ]:1: 'qtt' not found
  var t1 = mytable[2:, :]
                     ^
[ stdin ]:8: Only 1 subscript is accepted
osh9 Index a list with a range, not a slice. TODO: Figure out semantics

[osh stdout] Expected 'TODO\n', got ''
[osh status] Expected 3, got 2

stdout:
stderr: 
[??? no location ???] Ranges not implemented
osh10 List(0:3) should copy the list?

[osh stdout] Expected '0\n1\n2\n', got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
[??? no location ???] Ranges not implemented