Skip to content

Commit

Permalink
fix test for as.vpts()
Browse files Browse the repository at this point in the history
  • Loading branch information
adokter committed Nov 4, 2024
1 parent 72ac0cf commit 5fdf406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-as.vpts.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
test_that("as.vpts() returns error message for incorrect data", {
test_that("as.vpts() returns warning message for incorrect data", {
df <- read.csv(system.file("extdata", "example_vpts.csv", package = "bioRad"))

#randomly remove row
randomIndex <- sample(nrow(df), 1)
df <- df[-randomIndex, ]

expect_error(as.vpts(df),"identical")
expect_warning(as.vpts(df),"profiles found with different")
})

test_that("as.vpts() handles multiple unique attribute values correctly", {
Expand Down

0 comments on commit 5fdf406

Please sign in to comment.