From 6d66cb35bebce90ae0f240206be035b5a2c1ea5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sat, 14 Sep 2024 10:14:19 +0200 Subject: [PATCH] test: Adapt tests to duckdb release candidate --- tests/testthat/test-relational-duckdb.R | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-relational-duckdb.R b/tests/testthat/test-relational-duckdb.R index 689a803f..468eaf30 100644 --- a/tests/testthat/test-relational-duckdb.R +++ b/tests/testthat/test-relational-duckdb.R @@ -98,7 +98,14 @@ test_that("duckdb_rel_from_df() uses materialized results", { data.frame(a = 1) %>% duckplyr_filter(a == 1) - expect_snapshot(transform = function(x) gsub("0x[0-9a-f]+", "0xdeadbeef", x), { + transform <- function(x) { + x <- gsub("0x[0-9a-f]+", "0xdeadbeef", x) + # FIXME: Remove when duckdb 1.1.0 is out + x <- gsub('"=="', "==", x) + x + } + + expect_snapshot(transform = transform, { duckdb_rel_from_df(df) nrow(df) duckdb_rel_from_df(df)