diff options
| author | Damien George | 2016-10-11 12:30:32 +1100 |
|---|---|---|
| committer | Damien George | 2016-10-11 12:30:32 +1100 |
| commit | 5e22afce41de8c87071d8fc149a6ba3cd8762819 (patch) | |
| tree | cc8960bfe8bb7949ad5dd6a099ae3e390cb58359 /tests/micropython | |
| parent | e49153fb98ade48395b80271093bd763e771b3da (diff) | |
tests: Improve test coverage of py/compile.c.
Diffstat (limited to 'tests/micropython')
| -rw-r--r-- | tests/micropython/viper_args.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/micropython/viper_args.py b/tests/micropython/viper_args.py index ca2a5e670..2aebe1b04 100644 --- a/tests/micropython/viper_args.py +++ b/tests/micropython/viper_args.py @@ -26,3 +26,11 @@ def f4(x1:int, x2:int, x3:int, x4:int): f4(1, 2, 3, 4) # only up to 4 arguments currently supported + +# test compiling *x, **x, * args (currently unsupported at runtime) +@micropython.viper +def f(*x, **y): + pass +@micropython.viper +def f(*): + pass |
