@@ -83,7 +83,7 @@ test_get() {
83
83
test_mixed () {
84
84
if [ " $arr_type " = " i" ]; then
85
85
for j in $elements ; do
86
- [ $(( j % 10 )) = 0 ] && sort_i_arr test_arr
86
+ [ $(( j % 100 )) = 0 ] && sort_i_arr test_arr
87
87
# set_i_arr_el test_arr "$((j))" "$test_str"
88
88
set_i_arr_el test_arr " $(( j+ 1 )) " " $test_str "
89
89
unset_i_arr_el test_arr " $(( j)) "
@@ -94,7 +94,7 @@ test_mixed() {
94
94
# add_${arr_type}_arr_el test_arr "$test_str"
95
95
else
96
96
for j in $elements ; do
97
- [ $(( j % 10 )) = 0 ] && get_a_arr_keys -s test_arr testvar
97
+ [ $(( j % 100 )) = 0 ] && get_a_arr_keys -s test_arr testvar
98
98
set_a_arr_el test_arr " $(( j)) =$test_str " ; # echo "setting $((j+1))"
99
99
set_a_arr_el test_arr " $(( j* 2 )) =$test_str " ; # echo "setting $((j+1))"
100
100
unset_a_arr_el test_arr " $(( j)) " ; # echo "unsetting $((j))"
@@ -218,11 +218,11 @@ test_unset_all
218
218
219
219
220
220
if [ " $arr_type " = " i" ]; then
221
- unset_ ${arr_type} _arr_el test_arr " $(( l- 3 )) "
222
- set_i_arr_el test_arr " $(( l- 3 )) " " "
221
+ unset_i_arr_el test_arr " $(( l- 3 )) "
222
+ set_i_arr_el test_arr " $(( l- 3 )) " " $test_str "
223
223
else
224
- unset_ ${arr_type} _arr_el test_arr " bcdefghijklmn$(( l- 3 )) "
225
- set_a_arr_el test_arr " bcdefghijklmn$(( l- 3 )) ="
224
+ unset_a_arr_el test_arr " bcdefghijklmn$(( l- 3 )) "
225
+ set_a_arr_el test_arr " bcdefghijklmn$(( l- 3 )) =$test_str "
226
226
fi
227
227
228
228
measure_time test_unset_all
248
248
# echo "Resulting values:"
249
249
# echo "'$resulting_values'"
250
250
251
- exit 0
251
+ exit 0
0 commit comments