diff options
| author | Chris Sobczak <chris@sobczak.family> | 2026-07-10 16:42:21 -0700 |
|---|---|---|
| committer | Chris Sobczak <chris@sobczak.family> | 2026-07-10 16:42:21 -0700 |
| commit | 8ecb3a28a60290514dde24599564c34b9773e6a3 (patch) | |
| tree | 538dd9749f78a99cbca8ee4faa24d545fb60ece9 /tests | |
| parent | 0478b9c425d668d6ef0aa0e860f8e4eac8ee78a0 (diff) | |
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/testthat/test-matrix_metrics.R | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testthat/test-matrix_metrics.R b/tests/testthat/test-matrix_metrics.R new file mode 100644 index 0000000..e9348df --- /dev/null +++ b/tests/testthat/test-matrix_metrics.R @@ -0,0 +1,4 @@ +test_that("Check that error is zero if the input matrices are the same object", { + results <- matrix_metrics(diag(10), diag(10)) + expect_equal(results$rmse[1], 0) +}) |
