Home | History | Annotate | Download | only in test

Lines Matching refs:log

11 var log string
16 log += "a(" + s + ")"
21 log += "b(" + s + ")"
28 log += "a(" + s + ")"
33 log += "b(" + s + ")"
45 log += "a(" + s + ")"
50 log += "b(" + s + ")"
58 log += "f(" + x + ", " + y + ")"
63 log += "ff(" + x + ", " + y + ")"
67 log += "h(" + x + ")"
73 log += "g(" + x + ")"
80 if a("1")("2")("3"); log != "a(1)a(2)a(3)" {
81 println("expecting a(1)a(2)a(3) , got ", log)
84 log = ""
86 if t.a("1").a(t.b("2")); log != "a(1)b(2)a(2)" {
87 println("expecting a(1)b(2)a(2), got ", log)
90 log = ""
91 if a("3")(b("4"))(b("5")); log != "a(3)b(4)a(4)b(5)a(5)" {
92 println("expecting a(3)b(4)a(4)b(5)a(5), got ", log)
95 log = ""
97 if i.a("6").a(i.b("7")).a(i.b("8")).a(i.b("9")); log != "a(6)b(7)a(7)b(8)a(8)b(9)a(9)" {
98 println("expecting a(6)ba(7)ba(8)ba(9), got", log)
101 log = ""
103 if s := t.a("1").b("3"); log != "a(1)b(3)" || s != "3" {
104 println("expecting a(1)b(3) and 3, got ", log, " and ", s)
107 log = ""
109 if s := t.a("1").a(t.b("2")).b("3") + t.a("4").b("5"); log != "a(1)b(2)a(2)b(3)a(4)b(5)" || s != "35" {
110 println("expecting a(1)b(2)a(2)b(3)a(4)b(5) and 35, got ", log, " and ", s)
113 log = ""
115 if s := t.a("4").b("5") + t.a("1").a(t.b("2")).b("3"); log != "a(4)b(5)a(1)b(2)a(2)b(3)" || s != "53" {
116 println("expecting a(4)b(5)a(1)b(2)a(2)b(3) and 35, got ", log, " and ", s)
119 log = ""
121 if ff(g("1"), g("2")); log != "g(1)g(2)ff(1, 2)" {
122 println("expecting g(1)g(2)ff..., got ", log)
125 log = ""
127 if ff(g("1"), h("2")); log != "g(1)h(2)ff(1, 2)" {
128 println("expecting g(1)h(2)ff..., got ", log)
131 log = ""
133 if ff(h("1"), g("2")); log != "h(1)g(2)ff(1, 2)" {
134 println("expecting h(1)g(2)ff..., got ", log)
137 log = ""
139 if ff(h("1"), h("2")); log != "h(1)h(2)ff(1, 2)" {
140 println("expecting h(1)h(2)ff..., got ", log)
143 log = ""
145 if s := g("1") + g("2"); log != "g(1)g(2)" || s != "12" {
146 println("expecting g1g2 and 12, got ", log, " and ", s)
149 log = ""
151 if s := g("1") + h("2"); log != "g(1)h(2)" || s != "12" {
152 println("expecting g1h2 and 12, got ", log, " and ", s)
155 log = ""
157 if s := h("1") + g("2"); log != "h(1)g(2)" || s != "12" {
158 println("expecting h1g2 and 12, got ", log, " and ", s)
161 log = ""
163 if s := h("1") + h("2"); log != "h(1)h(2)" || s != "12" {
164 println("expecting h1h2 and 12, got ", log, " and ", s)
167 log = ""
172 if a("1")("2")("3"); log != "a(1)a(2)a(3)" {
173 println("in switch, expecting a(1)a(2)a(3) , got ", log)
176 log = ""
178 if t.a("1").a(t.b("2")); log != "a(1)b(2)a(2)" {
179 println("in switch, expecting a(1)b(2)a(2), got ", log)
182 log = ""
183 if a("3")(b("4"))(b("5")); log != "a(3)b(4)a(4)b(5)a(5)" {
184 println("in switch, expecting a(3)b(4)a(4)b(5)a(5), got ", log)
187 log = ""
189 if i.a("6").a(i.b("7")).a(i.b("8")).a(i.b("9")); log != "a(6)b(7)a(7)b(8)a(8)b(9)a(9)" {
190 println("in switch, expecting a(6)ba(7)ba(8)ba(9), got", log)
193 log = ""
202 if a("1")("2")("3"); log != "a(1)a(2)a(3)" {
203 println("in select1, expecting a(1)a(2)a(3) , got ", log)
206 log = ""
208 if t.a("1").a(t.b("2")); log != "a(1)b(2)a(2)" {
209 println("in select1, expecting a(1)b(2)a(2), got ", log)
212 log = ""
213 if a("3")(b("4"))(b("5")); log != "a(3)b(4)a(4)b(5)a(5)" {
214 println("in select1, expecting a(3)b(4)a(4)b(5)a(5), got ", log)
217 log = ""
219 if i.a("6").a(i.b("7")).a(i.b("8")).a(i.b("9")); log != "a(6)b(7)a(7)b(8)a(8)b(9)a(9)" {
220 println("in select1, expecting a(6)ba(7)ba(8)ba(9), got", log)
223 log = ""
229 if a("1")("2")("3"); log != "a(1)a(2)a(3)" {
230 println("in select2, expecting a(1)a(2)a(3) , got ", log)
233 log = ""
235 if t.a("1").a(t.b("2")); log != "a(1)b(2)a(2)" {
236 println("in select2, expecting a(1)b(2)a(2), got ", log)
239 log = ""
240 if a("3")(b("4"))(b("5")); log != "a(3)b(4)a(4)b(5)a(5)" {
241 println("in select2, expecting a(3)b(4)a(4)b(5)a(5), got ", log)
244 log = ""
246 if i.a("6").a(i.b("7")).a(i.b("8")).a(i.b("9")); log != "a(6)b(7)a(7)b(8)a(8)b(9)a(9)" {
247 println("in select2, expecting a(6)ba(7)ba(8)ba(9), got", log)
250 log = ""
258 if a("1")("2")("3"); log != "a(1)a(2)a(3)" {
259 println("in select3, expecting a(1)a(2)a(3) , got ", log)
262 log = ""
264 if t.a("1").a(t.b("2")); log != "a(1)b(2)a(2)" {
265 println("in select3, expecting a(1)b(2)a(2), got ", log)
268 log = ""
269 if a("3")(b("4"))(b("5")); log != "a(3)b(4)a(4)b(5)a(5)" {
270 println("in select3, expecting a(3)b(4)a(4)b(5)a(5), got ", log)
273 log = ""
275 if i.a("6").a(i.b("7")).a(i.b("8")).a(i.b("9")); log != "a(6)b(7)a(7)b(8)a(8)b(9)a(9)" {
276 println("in select3, expecting a(6)ba(7)ba(8)ba(9), got", log)
279 log = ""
286 if a("1")("2")("3"); log != "a(1)a(2)a(3)" {
287 println("in select4, expecting a(1)a(2)a(3) , got ", log)
290 log = ""
292 if t.a("1").a(t.b("2")); log != "a(1)b(2)a(2)" {
293 println("in select4, expecting a(1)b(2)a(2), got ", log)
296 log = ""
297 if a("3")(b("4"))(b("5")); log != "a(3)b(4)a(4)b(5)a(5)" {
298 println("in select4, expecting a(3)b(4)a(4)b(5)a(5), got ", log)
301 log = ""
303 if i.a("6").a(i.b("7")).a(i.b("8")).a(i.b("9")); log != "a(6)b(7)a(7)b(8)a(8)b(9)a(9)" {
304 println("in select4, expecting a(6)ba(7)ba(8)ba(9), got", log)
307 log = ""
314 if a("1")("2")("3"); log != "a(1)a(2)a(3)" {
315 println("in select5, expecting a(1)a(2)a(3) , got ", log)
318 log = ""
320 if t.a("1").a(t.b("2")); log != "a(1)b(2)a(2)" {
321 println("in select5, expecting a(1)b(2)a(2), got ", log)
324 log = ""
325 if a("3")(b("4"))(b("5")); log != "a(3)b(4)a(4)b(5)a(5)" {
326 println("in select5, expecting a(3)b(4)a(4)b(5)a(5), got ", log)
329 log = ""
331 if i.a("6").a(i.b("7")).a(i.b("8")).a(i.b("9")); log != "a(6)b(7)a(7)b(8)a(8)b(9)a(9)" {
332 println("in select5, expecting a(6)ba(7)ba(8)ba(9), got", log)
335 log = ""