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

from register import Accumulator
TESTS = []
def test(func):
global TESTS
TESTS.append(func)
return func
@test
def test_set():
pass
@test
def test_get():
pass
@test
def test_get_signed():
pass
@test
def test_negate():
pass
@test
def test_shift_right():
pass
@test
def test_shift_left():
pass
@test
def test_add():
pass
@test
def test_subtract():
pass
if __name__ == "__main__":
for test_func in TESTS:
test_func()