tests/testthat/test-textBoxInput.R

library(htmltools)
library(stringr)

# tests/testthat/test-pasteBoxInput.R
context("pasteBoxInput function")

print(pasteBoxInput("testInput", "Test Label"))
test_that("pasteBoxInput returns a list", {
	result <- pasteBoxInput("testInput", "Test Label")
	expect_is(result, "list")
})

test_that("pasteBoxInput includes necessary components", {
	result <- pasteBoxInput("testInput", "Test Label")
	print(result)
	expect_true(result[[2]]$name=="div")
	expect_true(result[[1]]$name=="head")
})

Try the picClip package in your browser

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

picClip documentation built on May 29, 2024, 10:26 a.m.