#NEWLINE# def test_scaled_zero( ) : #NEWLINE# #INDENT# ( a , b ) = ( ( [ 0 ] , 1 , 100 , 1 ) , ( - 1 ) ) #NEWLINE# assert ( scaled_zero ( 100 ) == ( b , b ) ) #NEWLINE# assert ( scaled_zero ( a ) == ( 0 , 1 , 100 , 1 ) ) #NEWLINE# ( a , b ) = ( ( [ 1 ] , 1 , 100 , 1 ) , ( - 1 ) ) #NEWLINE# assert ( scaled_zero ( 100 , ( - 1 ) ) == ( a , b ) ) #NEWLINE# assert ( scaled_zero ( a ) == ( 1 , 1 , 100 , 1 ) ) #NEWLINE# raises ( ValueError , ( lambda : scaled_zero ( scaled_zero ( 100 ) ) ) ) #NEWLINE# raises ( ValueError , ( lambda : scaled_zero ( 100 , 2 ) ) ) #NEWLINE# raises ( ValueError , ( lambda : scaled_zero ( 100 , 0 ) ) ) #NEWLINE# raises ( ValueError , ( lambda : scaled_zero ( ( 1 , 5 , 1 , 3 ) ) ) )