tests/testthat/test-extensions.R

skip_connection("extensions")
skip_on_livy()
skip_on_arrow_devel()

test_that("spark_dependency_fallback() works correctly", {
  expect_equal(
    spark_dependency_fallback("2.3", c("2.1", "2.2")),
    "2.2"
  )

  expect_equal(
    spark_dependency_fallback("2.2", c("2.1", "2.2")),
    "2.2"
  )

  expect_equal(
    spark_dependency_fallback("2.2", c("2.1", "2.3")),
    "2.1"
  )
})

test_clear_cache()
rstudio/sparklyr documentation built on April 30, 2024, 4:01 p.m.