context("test-bboxToVector")
test_that("works for vectors of floats", {
expect_equal( bboxToVector(c(-110, -60, 25, 45)), c(-110, -60, 25, 45) )
expect_equal( bboxToVector(c(-60, -110, 45, 25)), c(-110, -60, 25, 45) )
expect_error( bboxToVector(c(-190, -60, 25, 45)) )
expect_error( bboxToVector(c(-110, -60, 25, 95)) )
expect_error( bboxToVector(c(-110, -60, 25)) )
expect_error( bboxToVector(-110, -60, 25, 45) )
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.