Преглед изворни кода

Added unittests for move-instruction.

Jayke Meijer пре 14 година
родитељ
комит
bb1f3ba03f
1 измењених фајлова са 2 додато и 2 уклоњено
  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')