From f6ebc6b005c3cd600dce7e38cda88c7a56995ecb Mon Sep 17 00:00:00 2001 From: FBartos Date: Fri, 24 May 2024 11:33:51 +0200 Subject: [PATCH] update unit tests --- .github/workflows/R-CMD-check.yaml | 5 ++--- .github/workflows/R-CMD-tests.yaml | 5 ++--- tests/testthat/_snaps/zcurve/z-curve-kd2-ggplot.svg | 4 ++-- tests/testthat/_snaps/zcurve/z-curve-kd2.svg | 4 ++-- tests/testthat/test-zcurve.R | 4 ++-- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 0f2fe08..f4a4f91 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -22,9 +22,8 @@ jobs: config: - {os: macos-latest, r: 'release'} - {os: windows-latest, r: 'release'} - - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - - {os: ubuntu-latest, r: 'release'} - - {os: ubuntu-latest, r: 'oldrel-1'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/R-CMD-tests.yaml b/.github/workflows/R-CMD-tests.yaml index 81c0b8d..76fb3eb 100644 --- a/.github/workflows/R-CMD-tests.yaml +++ b/.github/workflows/R-CMD-tests.yaml @@ -22,9 +22,8 @@ jobs: config: - {os: macos-latest, r: 'release'} - {os: windows-latest, r: 'release'} - - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - - {os: ubuntu-latest, r: 'release'} - - {os: ubuntu-latest, r: 'oldrel-1'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/tests/testthat/_snaps/zcurve/z-curve-kd2-ggplot.svg b/tests/testthat/_snaps/zcurve/z-curve-kd2-ggplot.svg index 83ea8dc..32ca38d 100644 --- a/tests/testthat/_snaps/zcurve/z-curve-kd2-ggplot.svg +++ b/tests/testthat/_snaps/zcurve/z-curve-kd2-ggplot.svg @@ -56,10 +56,10 @@ - + - + diff --git a/tests/testthat/_snaps/zcurve/z-curve-kd2.svg b/tests/testthat/_snaps/zcurve/z-curve-kd2.svg index 50e38d5..b129144 100644 --- a/tests/testthat/_snaps/zcurve/z-curve-kd2.svg +++ b/tests/testthat/_snaps/zcurve/z-curve-kd2.svg @@ -87,9 +87,9 @@ - + - + diff --git a/tests/testthat/test-zcurve.R b/tests/testthat/test-zcurve.R index e8a45eb..62e3606 100644 --- a/tests/testthat/test-zcurve.R +++ b/tests/testthat/test-zcurve.R @@ -79,7 +79,7 @@ test_that("z-curve KD2 can be fitted and reproduces OSC results", { "" , "Estimates:" , " ERR EDR " , - "0.6133950 0.5064392 " + "0.6133975 0.5064694 " )) # basic summary @@ -94,7 +94,7 @@ test_that("z-curve KD2 can be fitted and reproduces OSC results", { "ERR 0.613 0.496 0.745" , "EDR 0.506 0.141 0.714" , "" , - "Model converged in 47 iterations" , + "Model converged in 46 iterations" , "Fitted using 73 z-values. 90 supplied, 85 significant (ODR = 0.94, 95% CI [0.87, 0.98]).", "RMSE = 0.11, 95% CI[0.09, 0.19]" ))