Lines Matching refs:expected

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"
460 expected=$'typeset -C -a mica01=([4]=(a_string=\'foo bar\';some_stuff=hello))'
461 [[ $(typeset -p mica01) == "$expected" ]] || err_exit 'appened to indexed array compound variable not working'
466 expected=$'(\n\ttypeset -l -i x=0\n)'
467 [[ $(print -v x) == "$expected" ]] || err_exit "'print -v x' should be $expected"
479 expected="typeset -C -A hello19=([19]=(one='xone 19';two='xtwo 19') [23]=(one='xone 23';two='xtwo 23'))"
480 [[ $(typeset -p hello19) == "$expected" ]] || print -u2 'typeset -p hello19 incorrect'
481 expected=$'(\n\tone=\'xone 19\'\n\ttwo=\'xtwo 19\'\n) (\n\tone=\'xone 23\'\n\ttwo=\'xtwo 23\'\n)'
482 [[ ${hello19[@]} == "$expected" ]] || print -u2 '${hello19[@]} incorrect'
511 expected=$'(\n\ttypeset -A subtree=(\n\t\t[a_node]=(\n\t\t\tone=hello\n\t\t\ttwo=world\n\t\t)\n\t)\n)'
512 [[ $tree == "$expected" ]] || err_exit 'move of compound local variable to global variable not working'
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'
547 expected='typeset -C x=(typeset -C -a nodes=([4]=());)'
548 [[ $(typeset -p x) == "$expected" ]] || err_exit 'typeset -p with nested compound index array not working'
556 expected='typeset -C v=(typeset -A -l -i ar=([aa]=4 [bb]=9);)'
557 [[ $(typeset -p v) == "$expected" ]] || err_exit 'attributes for associative arrays embedded in compound variables not working'
569 expected='typeset -C -A l=([4]=(typeset -a ar=(1 2 3);b=1))'
572 [[ $(typeset -p l) == "$expected" ]] || err_exit 'read -C for associative array of compound variables not working'
578 [[ $got == "$exp" ]] || err_exit "typeset -p failed -- expected '$exp', got '$got'"
582 expected='(typeset -C -a y;typeset -l -E z=2)'
583 [[ $expected == "$got" ]] || err_exit "print -C x exects '$expected' got '$got'"
600 expected=$'(\n\t[0]=(\n\t\ta=1\n\t)\n\t[1]=(\n\t\tb=2\n\t)\n)'
601 [[ $(print -v x) == "$expected" ]] || err_exit 'print -v not formatting correctly'