Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Dec 31, 2023
1 parent d2f291a commit 40ce195
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions randovania_lupa/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2247,35 +2247,35 @@ def test_method_call_bound(self):
# tests for the lupa.unpacks_lua_table and lupa.unpacks_lua_table_method
# decorators

@lupa.unpacks_lua_table
@randovania_lupa.unpacks_lua_table
def func_1(x):
return ("x=%s" % (x, ))


@lupa.unpacks_lua_table
@randovania_lupa.unpacks_lua_table
def func_2(x, y):
return ("x=%s, y=%s" % (x, y))


@lupa.unpacks_lua_table
@randovania_lupa.unpacks_lua_table
def func_3(x, y, z='default'):
return ("x=%s, y=%s, z=%s" % (x, y, z))


class MyCls_1(object):
@lupa.unpacks_lua_table_method
@randovania_lupa.unpacks_lua_table_method
def meth(self, x):
return ("x=%s" % (x,))


class MyCls_2(object):
@lupa.unpacks_lua_table_method
@randovania_lupa.unpacks_lua_table_method
def meth(self, x, y):
return ("x=%s, y=%s" % (x, y))


class MyCls_3(object):
@lupa.unpacks_lua_table_method
@randovania_lupa.unpacks_lua_table_method
def meth(self, x, y, z='default'):
return ("x=%s, y=%s, z=%s" % (x, y, z))

Expand Down

0 comments on commit 40ce195

Please sign in to comment.