

def test_lda_imm_with_binary(self):
    tokens = list(lexical('LDA #%00000100'))
    self.assertEquals(2, len(ast))
    self.assertEquals('T_INSTRUCTION', tokens[0]['type'])
    self.assertEquals('T_BINARY_NUMBER', tokens[1]['type'])
    ast = syntax(tokens)
    self.assertEquals(1, len(ast))
    self.assertEquals('S_IMMEDIATE', ast[0]['type'])
    code = semantic(ast)
    self.assertEquals(code, [169, 4])

dataset/ETHPy150Open gutomaia/pyNES/pynes/tests/lda_test.py LdaTest.test_lda_imm_with_binary/VarMisuse@28/44 `tokens`->`ast`