tests/testthat/test-filter_not.R

test_that("filter_not", {
  filtered_data <- filter_all(
    iris,
    list(
      type = "NOT",
      subfilter = list(
        type = "GT",
        value = 5,
        column = "Sepal.Length"
      )
    )
  )

  result <- filtered_data$passed
  expect_true(all(result$Sepal.Length <= 5))
})

Try the eider package in your browser

Any scripts or data that you put into this service are public.

eider documentation built on May 29, 2024, 7:27 a.m.