

def test_lda_zpx(self):
    tokens = list(lexical('LDA $10,X'))
    self.assertEquals(4, len(tokens))
    self.assertEquals('T_INSTRUCTION', tokens[0]['type'])
    self.assertEquals('T_ADDRESS', tokens[1]['type'])
    self.assertEquals('T_SEPARATOR', tokens[2]['type'])
    self.assertEquals('T_REGISTER', tokens[3]['type'])
    ast = syntax(tokens)
    self.assertEquals(1, len(ast))
    tokens.assertEquals('S_ZEROPAGE_X', ast[0]['type'])
    code = semantic(ast)
    self.assertEquals(code, [181, 16])

dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/lda_test.py LdaTest.test_lda_zpx/VarMisuse@111/158 `self`->`tokens`