You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
489 B

  1. from register import Accumulator
  2. TESTS = []
  3. def test(func):
  4. global TESTS
  5. TESTS.append(func)
  6. return func
  7. @test
  8. def test_set():
  9. pass
  10. @test
  11. def test_get():
  12. pass
  13. @test
  14. def test_get_signed():
  15. pass
  16. @test
  17. def test_negate():
  18. pass
  19. @test
  20. def test_shift_right():
  21. pass
  22. @test
  23. def test_shift_left():
  24. pass
  25. @test
  26. def test_add():
  27. pass
  28. @test
  29. def test_subtract():
  30. pass
  31. if __name__ == "__main__":
  32. for test_func in TESTS:
  33. test_func()