test_power.py 281 B

1234567891011
  1. import unittest
  2. from utils import run_file
  3. class TestPower(unittest.TestCase):
  4. def test_power(self):
  5. self.assertTrue(run_file(["power.alc", "primitives.alc"],
  6. [1, 0, 2, 1, 5, 0, 2, 2, 3, 2, 10, 2, 10, 10],
  7. [1, 2, 1, 4, 9, 100, 10000000000]))