From fed3b6440f264a8c7ee59bd58b651ed3c96ac7f8 Mon Sep 17 00:00:00 2001 From: "Dr. Matthijs Berends" <31037261+msberends@users.noreply.github.com> Date: Wed, 19 Oct 2022 08:14:38 +0200 Subject: [PATCH] Unit test fix --- .github/workflows/check-release.yaml | 4 ++-- DESCRIPTION | 2 +- NEWS.md | 2 +- inst/tinytest/test-ab.R | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-release.yaml b/.github/workflows/check-release.yaml index e004ffb3..0f38e405 100644 --- a/.github/workflows/check-release.yaml +++ b/.github/workflows/check-release.yaml @@ -154,7 +154,7 @@ jobs: - name: Upload artifacts if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: artifacts-${{ matrix.config.os }}-r${{ matrix.config.r }} - path: ${GITHUB_WORKSPACE}.Rcheck + path: ${{ github.workspace }}.Rcheck diff --git a/DESCRIPTION b/DESCRIPTION index a8e4f70f..ef9e683f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: AMR -Version: 1.8.2.9021 +Version: 1.8.2.9022 Date: 2022-10-19 Title: Antimicrobial Resistance Data Analysis Description: Functions to simplify and standardise antimicrobial resistance (AMR) diff --git a/NEWS.md b/NEWS.md index b870a4ff..e5fba191 100755 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# AMR 1.8.2.9021 +# AMR 1.8.2.9022 This version will eventually become v2.0! We're happy to reach a new major milestone soon! diff --git a/inst/tinytest/test-ab.R b/inst/tinytest/test-ab.R index 8181f8f2..84a6614d 100755 --- a/inst/tinytest/test-ab.R +++ b/inst/tinytest/test-ab.R @@ -85,7 +85,7 @@ expect_inherits(x[1], "ab") expect_inherits(x[[1]], "ab") expect_inherits(c(x[1], x[9]), "ab") expect_inherits(unique(x[1], x[9]), "ab") -expect_inherits(rep(x[1], x[9]), "ab") +expect_inherits(rep(x[1], 2), "ab") expect_warning(x[1] <- "invalid code") expect_warning(x[[1]] <- "invalid code") expect_warning(c(x[1], "test"))