Explorar el Código

Added unittests for move-instruction.

Jayke Meijer hace 14 años
padre
commit
bb1f3ba03f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tests/test_optimize.py

+ 2 - 2
tests/test_optimize.py

@@ -28,7 +28,7 @@ class TestOptimize(unittest.TestCase):
         optimize_global(block)
         self.assertEquals(block.statements, [foo, move, bar])
         
-    def test_optimize_global_movinst(self):
+    def test_optimize_global_movinst_true(self):
         foo = S('command', 'foo')
         bar = S('command', 'bar')
         
@@ -41,7 +41,7 @@ class TestOptimize(unittest.TestCase):
                    S('command', 'addu', '$regA', '$regB', 2),      
                    bar])
                    
-    def test_optimize_global_movinst(self):
+    def test_optimize_global_movinst_false(self):
         foo = S('command', 'foo')
         bar = S('command', 'bar')