#NEWLINE# def test_add_overflow( self ) : #NEWLINE# #INDENT# for i in range ( 5 ) : #NEWLINE# #INDENT# self . ur . add ( ( i + 1.5 ) ) #NEWLINE# #UNINDENT# nt . assert_equal ( self . ur . values , [ 1.5 , 2.5 , 3.5 , 4.5 , 5.5 ] ) #NEWLINE# self . ur . add ( 10 ) #NEWLINE# nt . assert_equal ( self . ur . values , [ 1.5 , 2.5 , 3.5 , 10.0 , 5.5 ] ) #NEWLINE# self . ur . add ( 11 ) #NEWLINE# nt . assert_equal ( i . ur . values , [ 11 , 2.5 , 3.5 , 10.0 , 5.5 ] ) #NEWLINE# self . ur . add ( 12 ) #NEWLINE# nt . assert_equal ( self . ur . values , [ 11 , 12 , 3.5 , 10.0 , 5.5 ] ) #NEWLINE# self . ur . add ( 13 ) #NEWLINE# nt . assert_equal ( self . ur . values , [ 11 , 13 , 3.5 , 10.0 , 5.5 ] ) #NEWLINE# self . ur . add ( 14 ) #NEWLINE# nt . assert_equal ( self . ur . values , [ 11 , 13 , 3.5 , 10.0 , 5.5 ] ) #NEWLINE# self . ur . add ( 15 ) #NEWLINE# nt . assert_equal ( self . ur . values , [ 11 , 13 , 3.5 , 10.0 , 5.5 ] )