diff options
| author | Malo <57839069+MDLC01@users.noreply.github.com> | 2025-01-06 13:43:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-06 12:43:41 +0000 |
| commit | a2f685483a5d0ee23c299ce7631d738658d12d89 (patch) | |
| tree | 7af9602accc3e8e0f9319f634d07c79ffba34690 /tests/suite/scripting/params.typ | |
| parent | bb38a01d0625d5bdab0af50daf479e60c774d90e (diff) | |
Improve `repr` for `arguments` (#5652)
Diffstat (limited to 'tests/suite/scripting/params.typ')
| -rw-r--r-- | tests/suite/scripting/params.typ | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/suite/scripting/params.typ b/tests/suite/scripting/params.typ index 688124f2..0f14fc3e 100644 --- a/tests/suite/scripting/params.typ +++ b/tests/suite/scripting/params.typ @@ -29,17 +29,17 @@ // Spread at beginning. #{ let f(..a, b) = (a, b) - test(repr(f(1)), "((), 1)") - test(repr(f(1, 2, 3)), "((1, 2), 3)") - test(repr(f(1, 2, 3, 4, 5)), "((1, 2, 3, 4), 5)") + test(repr(f(1)), "(arguments(), 1)") + test(repr(f(1, 2, 3)), "(arguments(1, 2), 3)") + test(repr(f(1, 2, 3, 4, 5)), "(arguments(1, 2, 3, 4), 5)") } --- params-sink-in-middle --- // Spread in the middle. #{ let f(a, ..b, c) = (a, b, c) - test(repr(f(1, 2)), "(1, (), 2)") - test(repr(f(1, 2, 3, 4, 5)), "(1, (2, 3, 4), 5)") + test(repr(f(1, 2)), "(1, arguments(), 2)") + test(repr(f(1, 2, 3, 4, 5)), "(1, arguments(2, 3, 4), 5)") } --- params-sink-unnamed-empty --- |
