We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85b94a7 commit 2557a3cCopy full SHA for 2557a3c
tests/test_function.py
@@ -28,6 +28,16 @@ def test_new_keyword(context):
28
{
29
return "Hello, " + this.who + "!";
30
}
31
+
32
+ function MoreThan16Arguments(a1, a2, a3, a4, b1, b2, b3, b4, c1, c2, c3, c4, d1, d2, d3, d4, e1, e2, e3, e4)
33
+ {
34
+ this.data = [a1, a2, a3, a4, b1, b2, b3, b4, c1, c2, c3, c4, d1, d2, d3, d4, e1, e2, e3, e4];
35
+ }
36
37
+ function MoreThan16Arguments2(a1, a2, a3, a4, b1, b2, b3, b4, c1, c2, c3, c4, d1, d2, d3, d4, e1, e2, e3, e4)
38
39
+ return [a1, a2, a3, a4, b1, b2, b3, b4, c1, c2, c3, c4, d1, d2, d3, d4, e1, e2, e3, e4];
40
41
""")
42
43
f = context.glob.NewKeywordTest
@@ -53,3 +63,8 @@ def test_new_keyword(context):
53
63
54
64
res = instance.test()
55
65
assert res == "Hello, world!"
66
67
+ args = [2, 4, 6, 23, 54, 2, 8, 43, -1, 100, 200, 300, 3, 4, 5, 23, 5, 38, 10, 29]
68
+ instance = new(context.glob.MoreThan16Arguments, *args)
69
+ assert instance.data == args
70
+ assert context.glob.MoreThan16Arguments2(*args) == args
0 commit comments