tests/testthat/test_debug.R

## vim:textwidth=128:expandtab:shiftwidth=4:softtabstop=4
## The tests relating to data dimensions will need to be altered if the dataset is altered.

library(argoFloats)

context("argoFloatsDebug")

test_that("argoFloatsDebug", {
    expect_output(argoFloatsDebug(1,'red',style='red'),"red")
    expect_output(argoFloatsDebug(1,"plain"),"plain")
    expect_output(argoFloatsDebug(3,"red",style="red"),"red")
    expect_output(argoFloatsDebug(3, "red", style="bold"), "red")
    expect_output(argoFloatsDebug(3, "red", style="italic"), "red")
    expect_output(argoFloatsDebug(3, "red", style="green"), "red")
    expect_output(argoFloatsDebug(3, "red", style="blue"), "red")
    expect_silent(argoFloatsDebug(0))
          })

Try the argoFloats package in your browser

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

argoFloats documentation built on Oct. 18, 2023, 1:06 a.m.