library(testthat)
library(OneSwap)
test_that("oneswap returns correct response", {
expect_equal(oneswap(c(1,2,3,4,5)), TRUE)
expect_equal(oneswap(c(2,1,3,4,6,5,7)), FALSE)
expect_equal(oneswap(c(1,2,7,4,5,6,3,8,9)), TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.