Lines Matching defs:err_exit

20 function err_exit
26 alias err_exit='err_exit $LINENO'
43 [[ ${p.x} == 1 ]] || err_exit '${p[x]} is not 1'
45 [[ $(p.len) == 1 ]] || err_exit '$(p.len) != 1'
46 [[ ${p.len} == 1 ]] || err_exit '${p.len} != 1'
47 (( p.len == 1 )) || err_exit '((p.len != 1))'
49 (( q.x == 1 )) || err_exit 'q.x is not 1'
50 (( (q.len - sqrt(5)) < 10e-10 )) || err_exit 'q.len != sqrt(5)'
55 (( q.len == 3 )) || err_exit 'q.len is not 3'
57 [[ ${p.y} == 2 ]] || err_exit '${p[y]} is not 2'
58 [[ ${@p} == Pt_t ]] || err_exit 'type of p is not Pt_t'
59 [[ ${@q} == Pt_t ]] || err_exit 'type of q is not Pt_t'
60 (( p.len == 3 )) || err_exit 'p.len is not 3'
63 (( pp[0].len == 5 )) || err_exit 'pp[0].len != 5'
64 (( pp[1].len == 13 )) || err_exit 'pp[0].len != 12'
65 (( (pp[2].len - sqrt(5)) < 10e-10 )) || err_exit 'pp[2].len != sqrt(5)'
66 [[ ${pp[1]} == $'(\n\ttypeset -l -E x=5\n\ttypeset -l -E y=12\n)' ]] || err_exit '${pp[1] is not correct'
67 [[ ${!pp[@]} == '0 1 2' ]] || err_exit '${pp[@] != "0 1 2"'
69 (( pp[3].len == 10 )) || err_exit 'pp[3].len != 10'
70 [[ ${!pp[@]} == '0 1 2 3' ]] || err_exit '${pp[@] != "0 1 2 3"'
72 [[ ${pp[4]} == $'(\n\ttypeset -l -E x=5\n\ttypeset -l -E y=12\n)' ]] || err_exit '${pp[4] is not correct'
75 (( pp[one].len == 5 )) || err_exit 'pp[one].len != 5'
76 (( pp[two].len == 13 )) || err_exit 'pp[two].len != 12'
77 [[ ${pp[two]} == $'(\n\ttypeset -l -E x=5\n\ttypeset -l -E y=12\n)' ]] || err_exit '${pp[two] is not correct'
78 [[ ${!pp[@]} == 'one three two' ]] || err_exit '${pp[@] != "one three two"'
79 [[ ${@pp[1]} == Pt_t ]] || err_exit 'type of pp[1] is not Pt_t'
92 [[ ${p.y} == 6 ]] || err_exit '${p.y} != 6'
93 (( p.len == 7 )) || err_exit '((p.len !=7))'
101 [[ $y == "$z" ]] || err_exit 'expansion of indexed array of types is incorrect'
103 [[ $y == "$z" ]] || err_exit 'typeset -p z for indexed array of types is incorrect'
111 [[ $y == "$z" ]] || err_exit 'expansion of associative array of types is incorrect'
113 [[ $y == "$z" ]] || err_exit 'typeset -p z for associative of types is incorrect'
126 [[ $r == "$s" ]] || err_exit 'expansion of type containing index array of types is incorrect'
128 [[ $y == "$z" ]] || err_exit 'typeset -p z for type containing index of types is incorrect'
134 [[ $r == "$s" ]] || err_exit 'expansion of type containing index array of types is incorrect'
136 [[ $y == "$z" ]] || err_exit 'typeset -p z for type containing index of types is incorrect'