test_binary2decimal.py 297 B

12345678910
  1. import unittest
  2. from utils import run_file
  3. class TestBinary2Decimal(unittest.TestCase):
  4. def test_binary2decimal(self):
  5. self.assertTrue(run_file(["binary_to_decimal.alc", "primitives.alc"],
  6. ["1", "10", "11", "100", "001", "1100111101"],
  7. [1, 2, 3, 4, 1, 829]))