Lines Matching refs:exp

353 exp='(
372 [[ $got == "$exp" ]] || {
373 exp=$(printf %q "$exp")
375 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
386 exp=$'(\n\ttypeset -a x=(\n\t\t[1]=(\n\t\t\tX=1\n\t\t)\n\t)\n)'
388 [[ $got == "$exp" ]] || {
389 exp=$(printf %q "$exp")
391 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
402 exp=$'(\n\ttypeset -a x=(\n\t\t[1]=(\n\t\t\tX=1\n\t\t)\n\t)\n)'
404 [[ $got == "$exp" ]] || {
405 exp=$(printf %q "$exp")
407 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
576 exp=$'typeset -C x=(z=a\\=\'b c\')'
578 [[ $got == "$exp" ]] || err_exit "typeset -p failed -- expected '$exp', got '$got'"
613 exp='([0]=(b=2) [1]=(a=1))'
614 [[ $(print -C x) == "$exp" ]] || err_exit 'typeset -m not working for associative arrays'
620 exp='typeset -a z=(a (x=3;y=4) c)'
621 [[ $(typeset -p z) == "$exp" ]] || err_exit 'moving compound variable into indexed array fails'
628 exp='typeset -C c=(typeset -C -a a;typeset -C -a b=( [2]=(bb=2;)[9]=(aa=1));)'
629 [[ $(typeset -p c) == "$exp" ]] || err_exit 'moving compound indexed array element to another index…
636 exp='typeset -C c=(typeset -C -a a;typeset -C -A b=( [2]=(bb=2;)[9]=(aa=1));)'
637 [[ $(typeset -p c) == "$exp" ]] || err_exit 'moving compound indexed array element to a compound as…
673 exp=$'(\n\ttypeset -C -a board=(\n\t\t[1]=(\n\t\t\t[2]=(\n\t\t\t\tfoo=bar\n\t\t\t)\n\t\t\t[3]=(\n\t…
674 [[ "$(print -v c)" == "$exp" ]] || err_exit 'compound variable assignment to two dimensional array …
680 exp='typeset -C zz=([2]=def;foo=abc)'
681 [[ $(typeset -p zz) == "$exp" ]] || err_exit 'expansion of compound variables with non-identifiers …
685 exp='typeset -C zz=([2]=def;typeset -i [3]=123;foo=abc)'
686 …[[ $(typeset -p zz) == "$exp" ]] || err_exit 'expansion of compound variables with non-identifiers…