Skip to content

Commit 1ebc162

Browse files
committed
Adapt test to more permissive review feature behavior.
1 parent 7e8c600 commit 1ebc162

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/testthat/test-review_invariants.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ local({
3434
fs_client[["execute_IO_plan"]](info[["IO_plan"]])
3535
expect_length(fs_state[["error"]], 0L)
3636

37-
test_that("Review error message when extra choice is provided", {
37+
test_that("Review error message when extra choice is provided in a non-trailing position", {
3838
review2 <- review
39-
review2[["choices"]] <- c(review2[["choices"]], "choiceC")
39+
review2[["choices"]] <- c("choiceC", review2[["choices"]])
4040
info <- REV_load_annotation_info(fs_contents, review2, dataset_lists)
4141
expect_true(length(info[["error"]]) == 1 &&
42-
startsWith(info[["error"]][[1]], "Review choices should remain stable during the course of a trial."))
42+
startsWith(info[["error"]][[1]],
43+
"Review choices cannot be removed or reordered during the course of a trial."))
4344
})
4445

4546
test_that("Review error message when `id_vars` is modified", {

0 commit comments

Comments
 (0)