from unittest import TestCase
from benchmark.check_armstrong import check_armstrong
class Test_check_armstrong(TestCase):
# distances_true = {1: [1], 2: [0]}
# distances_false = {1: [0], 2: [1]}
def test_check_armstrong_1(self):
assert check_armstrong(n=1) == True
# distances_true = {1: [135], 2: [134], 3: [0]}
# distances_false = {1: [0], 2: [0], 3: [16]}
def test_check_armstrong_2(self):
assert check_armstrong(n=135) == False
# distances_true = {1: [307], 2: [306], 3: [157], 4: [0, 0, 0, 1], 5: [63]}
# distances_false = {1: [0], 2: [0], 3: [0], 4: [307, 30, 3, 0], 5: [0]}
def test_check_armstrong_3(self):
assert check_armstrong(n=307) == False