@@ -37,8 +37,7 @@ test_that("Different method= for match() and %in% work", {
3737 expect_identical(match(x , y , method = " hashrev" ), expected )
3838 expect_identical(match(x , y , method = " sortorderpos" ), expected )
3939 expect_error(match(x , y , method = " _unknown_" ), " 'arg' should be one of" , fixed = TRUE )
40- # TODO(#58): Fix this, currently fails.
41- # expect_identical(match(x, y, method="orderpos"), expected)
40+ expect_identical(match(x , y , method = " orderpos" ), expected )
4241
4342 # NB: %in% is quite a bit different; while there's a public API to
4443 # `%in%.integer64`, likely, there shouldn't be (it's strange to export
@@ -265,8 +264,7 @@ test_that("different method= for duplicated, unique work", {
265264 expect_identical(unique(x , method = " sortorderuni" ), exp_unq )
266265 expect_identical(unique(x , method = " sortuni" ), exp_unq )
267266
268- # TODO(#58): Fix this, currently fails.
269- # expect_identical(duplicated(x, method="orderdup"), exp_dup)
267+ expect_identical(duplicated(x , method = " orderdup" ), exp_dup )
270268 expect_identical(unique(x , method = " orderuni" ), exp_unq )
271269})
272270
@@ -377,10 +375,10 @@ test_that("prank() works as intended", {
377375 expect_identical(prank(x [1L ]), NA_integer64_ )
378376})
379377
380- test_that(" match.integer64 with method='orderpos' fails due to bug " , {
378+ test_that(" match.integer64 with method='orderpos' works " , {
381379 x <- as.integer64(1 : 5 )
382380 table <- as.integer64(3 : 7 )
383- expect_error (match(x , table , method = " orderpos" ), " object 's' not found " , fixed = TRUE )
381+ expect_identical (match(x , table , method = " orderpos" ), c( NA , NA , 1 : 3 ) )
384382})
385383
386384test_that(" match.integer64 with partial cache triggers fallback" , {
0 commit comments