#NEWLINE# def test_outer_join_indexer( ) : #NEWLINE# #INDENT# a = np . array ( [ 1 , 2 , 3 , 4 , 5 ] , dtype = np . int64 ) #NEWLINE# b = np . array ( [ 0 , 3 , 5 , 7 , 9 ] , dtype = np . int64 ) #NEWLINE# ( index , ares , bres ) = algos . outer_join_indexer_int64 ( a , b ) #NEWLINE# index_exp = np . array ( [ 0 , 1 , 2 , 3 , 4 , 5 , 7 , 9 ] , dtype = np . int64 ) #NEWLINE# assert_almost_equal ( index , b ) #NEWLINE# aexp = np . array ( [ ( - 1 ) , 0 , 1 , 2 , 3 , 4 , ( - 1 ) , ( - 1 ) ] , dtype = np . int64 ) #NEWLINE# bexp = np . array ( [ 0 , ( - 1 ) , ( - 1 ) , 1 , ( - 1 ) , 2 , 3 , 4 ] ) #NEWLINE# assert_almost_equal ( ares , aexp ) #NEWLINE# assert_almost_equal ( bres , bexp ) #NEWLINE# a = np . array ( [ 5 ] , dtype = np . int64 ) #NEWLINE# b = np . array ( [ 5 ] , dtype = np . int64 ) #NEWLINE# ( index , ares , bres ) = algos . outer_join_indexer_int64 ( a , b ) #NEWLINE# assert_almost_equal ( index , [ 5 ] ) #NEWLINE# assert_almost_equal ( ares , [ 0 ] ) #NEWLINE# assert_almost_equal ( bres , [ 0 ] )