diff --git a/tests/testthat/test-indexes.R b/tests/testthat/test-indexes.R new file mode 100644 index 00000000..6e1dbda2 --- /dev/null +++ b/tests/testthat/test-indexes.R @@ -0,0 +1,7 @@ +# Test for for indexes to return correct values, e.g. +# tested against other software + +test_that("PVAFF returns expected value", { + v <- indexPvaff(boeker) + expect_equal(v, 0.42007) +})