tests/testthat/test-class.R

skip_if(debug_mode)

# Test if conline class is exposed:
instance1 <- new(conline)
instance1$trace <- FALSE

# Test if class instance can be passed from R:
expect_false(test_class_input(instance1))

# Test if class instance can be passed to R:
instance2 <- test_class_output()
expect_false(instance2$trace)

# Test if defaults are set correctly:
expect_true(instance2$forget_past_performance == 0)

Try the profoc package in your browser

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

profoc documentation built on Aug. 26, 2023, 1:07 a.m.