Skip to content

Commit

Permalink
udpate test
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Apr 2, 2024
1 parent 581bc79 commit f7709fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/testthat/test-series.R
Original file line number Diff line number Diff line change
Expand Up @@ -695,11 +695,9 @@ test_that("$struct$unnest() works", {
)

# Series "name" param is not used, only pl$Struct() name is used
s = pl$Series(name = "bar", dtype = pl$Struct(pl$Float64))
expected = list(numeric(0))
names(expected) = ""
s = pl$Series(name = "bar", dtype = pl$Struct(foo = pl$Float64))
expect_identical(
s$struct$unnest()$to_list(),
expected
list(foo = numeric(0))
)
})

0 comments on commit f7709fc

Please sign in to comment.