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'