Nothing
testthat::context("ExprFieldDef class")
testthat::test_that("Initializer works fine", {
testthat::expect_error(ExprFieldDef$new())
testthat::expect_error(ExprFieldDef$new("a"))
ExprFieldDef$new("a", "integer")
})
testthat::test_that("Conversion to string works fine", {
testthat::expect_equal(ExprFieldDef$new("a", "integer")$toString(),
"a INTEGER")
testthat::expect_equal(ExprFieldDef$new("a", "integer",
primary = TRUE)$toString(),
"a INTEGER PRIMARY KEY")
testthat::expect_equal(ExprFieldDef$new("a", "integer",
nullable = FALSE)$toString(),
"a INTEGER NOT NULL")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.