testthat::test_that( "examples/fastcpd_mean-time.R", { source("examples/fastcpd_mean-time.R") testthat::expect_equal(result@cp_set, 10006) # Something is seriously wrong if the running time is greater than # 10 seconds. testthat::expect_true(result_time[3] < 10) } )