Skip to content

Commit

Permalink
chore: Use unquoting to get better error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekundert committed Jun 10, 2020
1 parent 1dc2d85 commit 4210f90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wellmapr/tests/testthat/test_load.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test_that("`load()` works on a simple layout", {
x=1,
y=1)

expect_equivalent(layout, expected)
expect_equivalent(!!layout, !!expected)
})

test_that("`read.csv()` is a valid `data_loader()`", {
Expand All @@ -37,7 +37,7 @@ test_that("`read.csv()` is a valid `data_loader()`", {
Well="A1",
Data="xy")

expect_equivalent(layout, expected)
expect_equivalent(!!layout, !!expected)
})

test_that("`data_loader()` gets the `extras` argument", {
Expand Down Expand Up @@ -65,7 +65,7 @@ test_that("`data_loader()` gets the `extras` argument", {
Data="xy")


expect_equivalent(layout[[1]], expected)
expect_equivalent(!!layout[[1]], !!expected)
expect_equivalent(layout[[2]], list(a=1, b=1))
})

Expand Down

0 comments on commit 4210f90

Please sign in to comment.