Example #1
0
def test_recursiveDigitSum_0():
    assert recursiveDigitSum(9999) == 36
def test_recursiveDigitSum_0():
    assert recursiveDigitSum(1234) == 10
def test_recursiveDigitSum_3():
    assert recursiveDigitSum(100000) == 1
def test_recursiveDigitSum_1():
    for num in range(0, 10):
        assert recursiveDigitSum(num) == num
def test_recursiveDigitSum_2():
    assert recursiveDigitSum(647) == 17