def test_lshift(self): (signal1, signal2) = signals_from_line('cd LSHIFT 15 -> ch') self.assertEqual('cd', signal1) self.assertEqual('15', signal2)
def test_assign(self): (signal1, signal2) = signals_from_line('44430 -> b') self.assertEqual('44430', signal1) self.assertEqual(None, signal2)
def test_and(self): (signal1, signal2) = signals_from_line('jx AND jz -> ka') self.assertEqual('jx', signal1) self.assertEqual('jz', signal2)
def test_not(self): (signal1, signal2) = signals_from_line('NOT dq -> dr') self.assertEqual('dq', signal1) self.assertEqual(None, signal2)