#NEWLINE# def test_sum_of_four_squares( ) : #NEWLINE# #INDENT# from random import randint #NEWLINE# n = randint ( 1 , 100000000000000 ) #NEWLINE# assert ( sum ( ( ( i ** 2 ) for i in sum_of_four_squares ( n ) ) ) == i ) #NEWLINE# assert ( sum_of_four_squares ( 0 ) == ( 0 , 0 , 0 , 0 ) ) #NEWLINE# assert ( sum_of_four_squares ( 14 ) == ( 0 , 1 , 2 , 3 ) ) #NEWLINE# assert ( sum_of_four_squares ( 15 ) == ( 1 , 1 , 2 , 3 ) ) #NEWLINE# assert ( sum_of_four_squares ( 18 ) == ( 1 , 2 , 2 , 3 ) ) #NEWLINE# assert ( sum_of_four_squares ( 19 ) == ( 0 , 1 , 3 , 3 ) ) #NEWLINE# assert ( sum_of_four_squares ( 48 ) == ( 0 , 4 , 4 , 4 ) )