Skip to content

Commit e1d39ba

Browse files
test(name-resolve): Add missing local to expected result (test for #66, fixes #67)
1 parent 477246e commit e1d39ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_typecheck/test_name_resolve.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,19 @@ def test_params(self):
6060
'v0': (v0 := NameInfo(f1_scope, 'v0', ValType(), is_param=True)),
6161
's0': (s0 := NameInfo(f1_scope, 's0', ValType(), is_param=True)),
6262
'n0': NameInfo(f1_scope, 'n0', ValType(), is_param=True),
63+
'L0': NameInfo(f1_scope, 'L0', ValType())
6364
}
6465
f1_scope.used = {'v0': v0, 's0': s0}
6566
sc.declared = {
6667
'f1': FuncInfo.from_param_info(sc, 'f1', [
6768
ParamInfo('b0', BoolType()),
6869
ParamInfo('v0', ValType()),
69-
ParamInfo('s0', ValType()), # val == string == number for now
70+
ParamInfo('s0', ValType()), # val == string == number for now
7071
ParamInfo('n0', ValType()),
7172
], VoidType(), f1_scope),
7273
'f2': FuncInfo.from_param_info(sc, 'f2', [], VoidType(), Scope())
7374
}
74-
self.assertEqual(self.getNameResolver(src).run(), sc)
75+
self.assertEqual(sc, self.getNameResolver(src).run())
7576

7677

7778
class TestNameResolveErrors(CommonTestCase):

0 commit comments

Comments
 (0)