mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-01 11:29:32 +00:00
Use a list comprehension to collect valid_modes
This commit is contained in:
parent
f43a4c2048
commit
8a3bdd7870
@ -5540,8 +5540,7 @@ class Common6502Tests:
|
|||||||
self.assertEqual(0x0001, mpu.pc)
|
self.assertEqual(0x0001, mpu.pc)
|
||||||
|
|
||||||
def test_decorated_addressing_modes_are_valid(self):
|
def test_decorated_addressing_modes_are_valid(self):
|
||||||
valid_modes = map(lambda x: x[0],
|
valid_modes = [x[0] for x in py65.assembler.Assembler.Addressing]
|
||||||
py65.assembler.Assembler.Addressing)
|
|
||||||
mpu = self._make_mpu()
|
mpu = self._make_mpu()
|
||||||
for name, mode in mpu.disassemble:
|
for name, mode in mpu.disassemble:
|
||||||
self.assertTrue(mode in valid_modes)
|
self.assertTrue(mode in valid_modes)
|
||||||
|
Loading…
Reference in New Issue
Block a user