Results for ysh-slice-range.test.sh

statusoshosh-cpp
pass 90
FAIL 211
total1111
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 expression
details
7pass FAIL Copy wtih a[:]
details
8FAIL FAIL Slices with Multiple Dimensions (for QTT)
detailsdetails
9FAIL FAIL Index a list with a range, not a slice. TODO: Figure out semantics
detailsdetails
10pass FAIL Range with list constructor
details
9 passed, 0 OK, 0 not implemented, 0 BUG, 13 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 expression

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

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

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

stdout:
stderr: 
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
osh-cpp8 Slices with Multiple Dimensions (for QTT)

[osh-cpp stdout] Expected "(Str) 'TODO: Table Slicing'\n(Str) 'TODO: Table Slicing'\n" Got ''
[osh-cpp 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 ''

stdout:
stderr: 
  var myslice = mylist[r]
  ^~~
[ stdin ]:4: fatal: expected Slice or Int
osh-cpp9 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-cpp10 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'