Lines Matching +full:1 +full:a

5 awk=${awk-../a.out}
10 awk = "../a.out"
12 NF == 0 || $1 ~ /^#/ {
15 $1 ~ /try/ { # new test
24 if (NF == 0) # blank line terminates a sequence
26 input = $1
51 # $1 $2 $3 output1 (\t for tab, \n for newline,
52 # $1 $2 $3 output2 ("" for null)
57 try { print ($1 == 1) ? "yes" : "no" }
58 1 yes
60 1E0 yes
62 10E-1 yes
67 try $1 > 0
68 1 1
71 -1 ""
72 1e0 1e0
79 x 1
86 x 1 x
90 # this horror prints $($2+1)
91 try { i=1; print ($++$++i) }
92 1 1
93 1 2 3 3
96 # concatenate $1 and ++$2; print new $1 and concatenated value
97 try { x = $1++++$2; print $1, x }
98 1 3 2 14
101 try $1 !$2
103 0 1 0\t1
104 1 0 1\t0
105 1 1 1\t1
108 try { print ($1~/abc/ !$2) }
110 0 1 00
112 xabcd 1 10
114 try { print !$1 + $2 }
115 1 3 3
117 -1 3 3
119 # aside: !$1 = $2 is now a syntax error
123 # try 1
125 try { print ($1 == $2) }
126 0 0 1
127 0 1 0
128 0 00 1
130 +0 -0 1
131 1 1.0 1
132 1 1e0 1
133 2e10 2.00e10 1
134 2e10 2e+10 1
135 2e-10 2e-10 1
137 2e10 20e9 1
138 2e100 2.000e100 1
141 # this one (3 & 4) may "fail" if a negative 0 is printed as -0,
142 # but i think this might be a type-coercion problem.
144 try { print $1, +$1, -$1, - -$1 }
145 1 1 1 -1 1
146 -1 -1 -1 1 -1
150 try { printf("a%*sb\n", $1, $2) }
151 1 x axb
152 2 x a xb
153 3 x a xb
155 try { printf("a%-*sb\n", $1, $2) }
156 1 x axb
160 try { printf("a%*.*sb\n", $1, $2, "hello") }
161 1 1 ahb
162 2 1 a hb
163 3 1 a hb
165 try { printf("a%-*.*sb\n", $1, $2, "hello") }
166 1 1 ahb
167 2 1 ah b
168 3 1 ah b
170 try { printf("%d %ld %lld %zd %jd %hd %hhd\n", $1, $1, $1, $1, $1, $1, $1) }
171 1 1 1 1 1 1 1 1
175 try { printf("%x %lx %llx %zx %jx %hx %hhx\n", $1, $1, $1, $1, $1, $1, $1) }
176 1 1 1 1 1 1 1 1
177 10 a a a a a a a
180 try { if ($1 ~ $2) print 1; else print 0 }
181 a \141 1
182 a \142 0
183 a \x61 1
184 a \x061 0
185 a \x62 0
186 0 \060 1
187 0 \60 1
189 Z \x5a 1
190 Z \x5A 1
192 try { print $1 ~ $2 }
193 a \141 1
194 a \142 0
195 a \x61 1
196 a \x061 0
197 a \x62 0
198 0 \060 1
199 0 \60 1
201 Z \x5a 1
202 Z \x5A 1
204 try { print $1 || $2 }
206 1 1
208 1 0 1
209 0 1 1
210 1 1 1
211 a b 1
213 try { print $1 && $2 }
215 1 0
217 1 0 0
218 0 1 0
219 1 1 1
220 a b 1
222 try { $1 = $2; $1 = $1; print $1 }
227 try { f = 1; $f++; print f, $f }
228 11 22 33 1 12
230 # $f[1]++ => ($f[1])++
231 try { f[1]=1; f[2]=2; print $f[1], $f[1]++, $f[2], f[1], f[2] }