#NEWLINE# @ pytest . mark . xfail #NEWLINE# def test_depth_greater_than_boundary_length( ) : #NEWLINE# #INDENT# expected = np . arange ( 100 ) . reshape ( 10 , 10 ) #NEWLINE# darr = da . from_array ( expected , chunks = ( 5 , 5 ) ) #NEWLINE# depth = { #NEWLINE# #INDENT# 0 : 8 , #NEWLINE# 1 : 7 , #NEWLINE# #UNINDENT# } #NEWLINE# reflected = ghost ( darr , depth = depth , boundary = 'reflect' ) #NEWLINE# nearest = ghost ( darr , depth = depth , boundary = 'nearest' ) #NEWLINE# periodic = ghost ( darr , depth = depth , boundary = 'periodic' ) #NEWLINE# constant = ghost ( darr , depth = depth , boundary = 42 ) #NEWLINE# result = trim_internal ( reflected , depth ) #NEWLINE# assert_array_equal ( result , expected ) #NEWLINE# result = trim_internal ( nearest , depth ) #NEWLINE# assert_array_equal ( result , expected ) #NEWLINE# result = trim_internal ( periodic , depth ) #NEWLINE# assert_array_equal ( result , expected ) #NEWLINE# result = trim_internal ( constant , depth ) #NEWLINE# assert_array_equal ( result , expected )