tests/testthat/test-map_layer_parameters.R

context("parameters")

test_that("check numeric works", {
	expect_error(mapdeck:::checkNumeric('a'))
	expect_silent(mapdeck:::checkNumeric(NULL))
	expect_error(mapdeck:::checkNumeric(1:2))
})

test_that("check palette works", {
	expect_error(mapdeck:::checkPalette('a'))
})

Try the mapdeck package in your browser

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

mapdeck documentation built on Sept. 4, 2020, 9:07 a.m.