Results for var-op-slice.test.sh

statusoshosh-cpp
pass 1919
ok 11
FAIL 11
total2121
caseoshosh-cppdescription
0pass pass String slice
1ok ok Cannot take length of substring slice
detailsdetails
2pass pass Out of range string slice: begin
3pass pass Out of range string slice: length
4pass pass Negative start index
5pass pass Negative start index respects unicode
6pass pass Negative second arg is position, not length!
7pass pass Negative start index respects unicode
8pass pass String slice with math
9pass pass Slice undefined
10pass pass Slice UTF-8 String
11pass pass Slice string with invalid UTF-8 results in empty string and warning
12pass pass Slice string with invalid UTF-8 with strict_word_eval
13pass pass Slice with an index that's an array -- silent a[0] decay
14pass pass Slice with an assoc array
15pass pass Simple ${@:offset}
16pass pass ${@:offset} and ${*:offset}
17pass pass ${@:offset:length} and ${*:offset:length}
18pass pass ${@:0:1}
19pass pass ${array[@]::0}
20FAIL FAIL ${array[@]::}
detailsdetails
38 passed, 2 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh1 Cannot take length of substring slice

stdout:
stderr: 
  echo ${#v:1:3}
           ^
[ stdin ]:2: Expected } after length expression
osh-cpp1 Cannot take length of substring slice

stdout:
stderr: 
  echo ${#v:1:3}
           ^
[ stdin ]:2: Expected } after length expression
osh20 ${array[@]::}

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

stdout:
stderr: 
  argv.py ${array[@]::}
                      ^
[ stdin ]:2: Token can't be used in prefix position
osh-cpp20 ${array[@]::}

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

stdout:
stderr: 
  argv.py ${array[@]::}
                      ^
[ stdin ]:2: Token can't be used in prefix position