]> granicus.if.org Git - yasm/commitdiff
* test_symrec.py: Actually add test, and fix it to work.
authorPeter Johnson <peter@tortall.net>
Mon, 17 Apr 2006 02:13:52 +0000 (02:13 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 17 Apr 2006 02:13:52 +0000 (02:13 -0000)
svn path=/trunk/yasm/; revision=1498

tools/python-yasm/tests/test_symrec.py

index 9489d999a308576def90bad96acc793b80d9dbac..eff6a3b89f7686848b6a1039feb661ea502445d9 100644 (file)
@@ -6,7 +6,8 @@ class TSymbolTable(TestCase):
     def test_keys(self):
         symtab = SymbolTable()
         self.failUnlessEqual(len(symtab.keys()), 0)
-        symtab.declare("foo")
+        symtab.declare("foo", 0, 0)
         keys = symtab.keys()
         self.failUnlessEqual(len(keys), 1)
         self.failUnlessEqual(keys[0], "foo")
+add(TSymbolTable)