Lines Matching refs:array
217 $SHELL -c 'typeset -a info=( [1]=( passwd=( since=2005-07-20) ))' || err_exit 'problem with embedded index array in compound variable'
268 [[ ${foo[c]} == cc ]] || err_exit 'associative array assignment with; not working'
269 [[ $({ $SHELL -c 'x=(); typeset -a x.foo; x.foo=bar; print -r -- "$x"' ;} 2> /dev/null) == $'(\n\ttypeset -a foo=bar\n)' ]] || err_exit 'indexed array in compound variable with only element 0 defined fails'
272 [[ $foo == *'typeset -a bar'* ]] || err_exit 'array attribute -a not preserved in compound variable'
275 [[ ${s[@]} == *z=*z=* ]] || err_exit 'missing elements in compound associative array'
289 typeset -A array=([one]=one [two]=2)
375 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
391 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
407 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
410 # array of compund variables
425 [[ $data == %(()) ]] || err_exit "unbalanced parenthesis with compound variable containing array of compound variables"
461 [[ $(typeset -p mica01) == "$expected" ]] || err_exit 'appened to indexed array compound variable not working'
507 # move local note into the array
514 typeset -C -A array
515 float array[12].amount=2.9
516 expected='typeset -C -A array=([12]=(typeset -l -E amount=2.9))'
517 [[ $(typeset -p array) == "$expected" ]] || err_exit 'typeset with compound variable with compound variable array not working'
548 [[ $(typeset -p x) == "$expected" ]] || err_exit 'typeset -p with nested compound index array not working'
562 [[ $(print -v x[1]) == "${x[1]}" ]] || err_exit 'print -v x[1] not working for index array of compound variables'
572 [[ $(typeset -p l) == "$expected" ]] || err_exit 'read -C for associative array of compound variables not working'
594 [[ $vx == "$vy" ]] || err_exit 'print -C with multi-dimensional array not working'
596 [[ $vx == "$vy" ]] || err_exit 'print -v with multi-dimensional array not working'
621 [[ $(typeset -p z) == "$exp" ]] || err_exit 'moving compound variable into indexed array fails'
629 [[ $(typeset -p c) == "$exp" ]] || err_exit 'moving compound indexed array element to another index fails'
637 [[ $(typeset -p c) == "$exp" ]] || err_exit 'moving compound indexed array element to a compound associative array element fails'
665 [[ ${a[4]} == $'(\n\tname=container1\n)' ]] || err_exit 'assignment of compound variable to compound array element not working'
674 [[ "$(print -v c)" == "$exp" ]] || err_exit 'compound variable assignment to two dimensional array not working'