#NEWLINE# def testCumMin( self ) : #NEWLINE# #INDENT# v = numpy . array ( [ 5 , 6 , 4 , 5 , 1 ] ) #NEWLINE# u = Util . cumMin ( v ) #NEWLINE# nptst . assert_array_equal ( u , numpy . array ( [ 5 , 5 , 4 , 4 , 1 ] ) ) #NEWLINE# v = numpy . array ( [ 5 , 4 , 3 , 2 , 1 ] ) #NEWLINE# u = Util . cumMin ( v ) #NEWLINE# nptst . assert_array_equal ( u , v ) #NEWLINE# v = numpy . array ( [ 1 , 2 , 3 ] ) #NEWLINE# u = Util . cumMin ( v ) #NEWLINE# nptst . assert_array_equal ( u , numpy . ones ( 3 ) )