Results for ble-idioms.test.sh

statusoshosh-cpp
pass 4846
FAIL 02
total4848
caseoshosh-cppdescription
0pass pass recursive arith: one level
1pass pass recursive arith: two levels
2pass pass recursive arith: short circuit &&, ||
3pass pass recursive arith: short circuit ?:
4pass pass recursive arith: side effects
5pass pass recursive arith: recursion
6pass pass recursive arith: array elements
7pass pass dynamic arith varname: assign
8pass pass dynamic arith varname: read
9pass pass dynamic arith varname: copy/add
10pass pass is-array with ${var@a}
11pass pass Sparse array with big index
12pass pass shift unshift reverse
13pass pass SparseArray Performance demo
14pass pass SparseArray: test length
15pass pass SparseArray: test "declare -p sp"
16pass pass SparseArray: +=
17pass pass SparseArray: a[i]=v
18pass pass SparseArray: Negative index with a[i]=v
19pass FAIL SparseArray: a[i]=v with BigInt
details
20pass pass SparseArray: Negative out-of-bound index with a[i]=v (1/2)
21pass pass SparseArray: Negative out-of-bound index with a[i]=v (2/2)
22pass pass SparseArray: xtrace a+=()
23pass pass SparseArray: unset -v a[i]
24pass pass SparseArray: unset -v a[i] with out-of-bound negative index
25pass pass SparseArray: unset -v a[i] for max index
26pass pass SparseArray: [[ -v a[i] ]]
27pass pass SparseArray: [[ -v a[i] ]] with invalid negative index
28pass pass SparseArray: ((sp[i])) and ((sp[i]++))
29pass pass SparseArray: ((sp[i])) and ((sp[i]++)) with invalid negative index
30pass pass SparseArray: ${sp[i]}
31pass pass SparseArray: ${sp[i]} with negative invalid index
32pass pass SparseArray (YSH): @[sp] and @sp
33pass pass SparseArray: ${a[@]:offset:length}
34pass pass ${@:offset:length}
35pass FAIL SparseArray: ${a[@]:BigInt}
details
36pass pass SparseArray: ${a[@]}
37pass pass SparseArray: ${a[@]#...}
38pass pass SparseArray: ${a[@]/pat/rep}
39pass pass SparseArray: ${a[@]@P}, ${a[@]@Q}, and ${a[@]@a}
40pass pass SparseArray: ${a[@]-unset}, ${a[@]:-empty}, etc.
41pass pass SparseArray: ${a-}
42pass pass SparseArray: compgen -F _set_COMPREPLY
43pass pass SparseArray: compgen -F _set_COMPREPLY
44pass pass SparseArray (YSH): $[a1 === a2]
45pass pass SparseArray (YSH): append v1 v2... (a)
46pass pass SparseArray (YSH): $[bool(a)]
47pass pass SparseArray: crash dump
94 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh-cpp19 SparseArray: a[i]=v with BigInt

[osh-cpp stdout] Expected '3\n4\n5\n6\n', got '3\n3\n4\n5\n'

stdout:
3
3
4
5
stderr:
osh-cpp35 SparseArray: ${a[@]:BigInt}

[osh-cpp stdout] Expected '[x][x]\n[y x][y x]\n[z y x][z y x]\n[z y x][z y x]\n' Got '[x][x]\n[y x][y x]\n[z y x][z y x]\n[][]\n'

stdout:
[x][x]
[y x][y x]
[z y x][z y x]
[][]
stderr: