pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2022-12-22
2022-12-22 14:29:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>
33c65fee4b13c3c3286fbeff45f3b8b33df423fe (
10
lines) (+
9
/-
1
)
[
Show
|
Annotate
]
Branch:
master
Testsuite: Fixed some of the multi-assign in function calls tests.
Tests
#10098
.
899:
dnl Multi-assign in function calls. test_any([[
+
class Foo {
// Lifted from issue #10098. int add([int a, int b], int c) { return a + b + c; }
-
+
}
+
return Foo()->add(({ 1, 2 }), 3);
+
]], 6)
+
test_any([[
+
// Lifted from issue #10098.
+
int add([int a, int b], int c) { return a + b + c; }
return add(({ 1, 2 }), 3); ]], 6) test_equal([[
-
lambda(int a, [int b, int c, [int e, int f]], int d){
+
lambda(int a, [int b, int c, [int e, int f]
], int d){
return ({ a, b, c, d, e, f }); }(1, ({ 3, 4, ({ 5, 6 }) }), 7); ]], ({ 1, 3, 4, 7, 5, 6 }))