예제 #1
0
def test_recursiveDigitSum_0():
    assert recursiveDigitSum(9999) == 36
예제 #2
0
def test_recursiveDigitSum_0():
    assert recursiveDigitSum(1234) == 10
예제 #3
0
def test_recursiveDigitSum_3():
    assert recursiveDigitSum(100000) == 1
예제 #4
0
def test_recursiveDigitSum_1():
    for num in range(0, 10):
        assert recursiveDigitSum(num) == num
예제 #5
0
def test_recursiveDigitSum_2():
    assert recursiveDigitSum(647) == 17