Lines Matching refs:y
33 float y=0
36 print -r $((sqrt(_.x*_.x + _.y*_.y)))
48 Pt_t q=(y=2)
53 print -r $((abs(_.x)+abs(_.y) ))
57 [[ ${p.y} == 2 ]] || err_exit '${p[y]} is not 2'
62 Pt_t pp=( ( x=3 y=4) ( x=5 y=12) (y=2) )
68 pp+=( x=6 y=8)
74 Pt_t pp=( [one]=( x=3 y=4) [two]=( x=5 y=12) [three]=(y=2) )
84 Pt_t _=(x=3 y=6)
88 print -r $((sqrt(_.x*_.x + _.y*_.y + _.z*_.z)))
92 [[ ${p.y} == 6 ]] || err_exit '${p.y} != 6'
97 z.p[1]=(y=2)
98 z.p[2]=(y=5)
99 z.p[3]=(x=6 y=4)
100 eval y="$z"
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'
104 unset z y
107 z.p[1]=(y=2)
108 z.p[2]=(y=5)
109 z.p[3]=(x=6 y=4)
110 eval y="$z"
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'
114 unset z y
123 r.b[1]=(y=2)
124 r.b[2]=(y=5)
128 [[ $y == "$z" ]] || err_exit 'typeset -p z for type containing index of types is incorrect'
131 r.b[1]=(y=2)
132 r.b[2]=(y=5)
136 [[ $y == "$z" ]] || err_exit 'typeset -p z for type containing index of types is incorrect'