Пример #1
0
 def test_unregister(self, instr_set):
     i_set = InstructionSet()
     i_set.register(instr_set["int_add"])
     i_set.register(instr_set["int_sub"])
     i_set.unregister("int_add")
     assert len(i_set) == 1
     assert list(i_set.values())[0].name == "int_sub"
Пример #2
0
 def test_unregister(self, atoms):
     i_set = InstructionSet()
     i_set.register(atoms["add"])
     i_set.register(atoms["sub"])
     i_set.unregister("int_add")
     assert len(i_set) == 1
     assert list(i_set.values())[0].name == "int_sub"
Пример #3
0
 def test_register(self, instr_set):
     i_set = InstructionSet()
     i_set.register(instr_set["int_add"])
     assert len(i_set) == 1
Пример #4
0
 def test_register(self, atoms):
     i_set = InstructionSet()
     i_set.register(atoms["add"])
     assert len(i_set) == 1
Пример #5
0
 def test_register(self, atoms):
     i_set = InstructionSet()
     i_set.register(atoms["add"])
     assert len(i_set) == 1