Skip to content

Commit

Permalink
Merge pull request #261 from tidyverse/f-duckdb-rc
Browse files Browse the repository at this point in the history
test: Adapt tests to duckdb release candidate
  • Loading branch information
krlmlr authored Sep 14, 2024
2 parents 9f6e280 + 6d66cb3 commit 5124a12
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/testthat/test-relational-duckdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5124a12

Please sign in to comment.