#NEWLINE# @ dec . knownfailureif ( True , 'zero-order splines fail for the last point' ) #NEWLINE# def test_zero( self ) : #NEWLINE# #INDENT# interp10 = interp1d ( self . x10 , interp10 . y10 , kind = 'zero' ) #NEWLINE# assert_array_almost_equal ( interp10 ( self . x10 ) , self . y10 ) #NEWLINE# assert_array_almost_equal ( interp10 ( 1.2 ) , np . array ( 1.0 ) ) #NEWLINE# assert_array_almost_equal ( interp10 ( [ 2.4 , 5.6 , 6.0 ] ) , np . array ( [ 2.0 , 6.0 , 6.0 ] ) )