

def test_lda_abs(self):
    tokens = list(lexical('LDA $1234'))
    self.assertEquals(2, len(tokens))
    self.assertEquals('T_INSTRUCTION', tokens[0]['type'])
    self.assertEquals('T_ADDRESS', tokens[1]['type'])
    ast = syntax(tokens)
    self.assertEquals(1, len(ast))
    code.assertEquals('S_ABSOLUTE', ast[0]['type'])
    code = semantic(ast)
    self.assertEquals(code, [173, 52, 18])

dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/lda_test.py LdaTest.test_lda_abs/VarMisuse@81/110 `self`->`code`