Results for ysh-slice-range.test.sh

statusoshosh_ALT
pass 1010
FAIL 44
total1414
caseoshosh_ALTdescription
0pass pass precedence of 1:3 vs comparison
1pass pass precedence of 1:3 vs bitwise operator
2pass pass subscript and slice :| 1 2 3 4 |
3FAIL FAIL Range end points can be int-looking Strings
detailsdetails
4FAIL FAIL Slice indices can be int-looking strings
detailsdetails
5FAIL FAIL slice subscripts are adjusted like Python
detailsdetails
6pass pass subscript and slice of List
7pass pass expressions and negative indices
8pass pass Index with expression
9pass pass Copy with a[:]
10pass pass Iterate over range
11pass pass Loops over bogus ranges terminate
12FAIL FAIL Slices with Multiple Dimensions (for TSV8?)
detailsdetails
13pass pass Closed ranges
20 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

osh3 Range end points can be int-looking Strings

[osh stdout] Expected '(List) [3,4,5]\n(List) [5,6]\n(List) [3,4]\n(List) [-5,-4]\n(List) [-7,-6]\n' Got ''
[osh status] Expected 3, got 1

stdout:
stderr: 
  pp test_ (list('3' ..< '6'))
                     ^~~
[ stdin ]:1: fatal: Integer too big: 3
osh_ALT3 Range end points can be int-looking Strings

[osh_ALT stdout] Expected '(List) [3,4,5]\n(List) [5,6]\n(List) [3,4]\n(List) [-5,-4]\n(List) [-7,-6]\n' Got ''
[osh_ALT status] Expected 3, got 1

stdout:
stderr: 
  pp test_ (list('3' ..< '6'))
                     ^~~
[ stdin ]:1: fatal: Integer too big: 3
osh4 Slice indices can be int-looking strings

[osh stdout] Expected '(List) [3,4,5]\n(List) [5,6]\n(List) [3,4]\n(List) [5,6]\n(List) [3,4]\n' Got ''
[osh status] Expected 3, got 1

stdout:
stderr: 
  pp test_ (a['3': '6'])
                 ^
[ stdin ]:3: fatal: Integer too big: 3
osh_ALT4 Slice indices can be int-looking strings

[osh_ALT stdout] Expected '(List) [3,4,5]\n(List) [5,6]\n(List) [3,4]\n(List) [5,6]\n(List) [3,4]\n' Got ''
[osh_ALT status] Expected 3, got 1

stdout:
stderr: 
  pp test_ (a['3': '6'])
                 ^
[ stdin ]:3: fatal: Integer too big: 3
osh5 slice subscripts are adjusted like Python

[osh stdout] Expected '[2,3]\n[2,3]\n\n[2,3,4,5]\n[2,3,4,5]\n\n[]\n[]\n\n[2,3,4]\n[2,3,4]\n\n[3,4]\n[3,4]\n\n[1,2,3,4]\n[1,2,3,4]\n\n[]\n[]\n\n[5]\n[5]\n\n' Got '[2,3]\n\n[2,3,4,5]\n\n[]\n\n[2,3,4]\n\n[3,4]\n\n[1,2,3,4]\n\n[]\n\n[5]\n\n'

stdout:
[2,3]

[2,3,4,5]

[]

[2,3,4]

[3,4]

[1,2,3,4]

[]

[5]

stderr:
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
osh_ALT5 slice subscripts are adjusted like Python

[osh_ALT stdout] Expected '[2,3]\n[2,3]\n\n[2,3,4,5]\n[2,3,4,5]\n\n[]\n[]\n\n[2,3,4]\n[2,3,4]\n\n[3,4]\n[3,4]\n\n[1,2,3,4]\n[1,2,3,4]\n\n[]\n[]\n\n[5]\n[5]\n\n' Got '[2,3]\n\n[2,3,4,5]\n\n[]\n\n[2,3,4]\n\n[3,4]\n\n[1,2,3,4]\n\n[]\n\n[5]\n\n'

stdout:
[2,3]

[2,3,4,5]

[]

[2,3,4]

[3,4]

[1,2,3,4]

[]

[5]

stderr:
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
    python3 -c '
    ^~~~~~~
[ stdin ]:2: 'python3' not found (OILS-ERR-100)
osh12 Slices with Multiple Dimensions (for TSV8?)

[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 (OILS-ERR-100)
  var t1 = mytable[2:, :]
           ^~~~~~~
[ stdin ]:8: fatal: Undefined variable 'mytable'
osh_ALT12 Slices with Multiple Dimensions (for TSV8?)

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

stdout:
stderr: 
  qtt pretty :mytable <<< '''
  ^~~
[ stdin ]:1: 'qtt' not found (OILS-ERR-100)
  var t1 = mytable[2:, :]
           ^~~~~~~
[ stdin ]:8: fatal: Undefined variable 'mytable'