4 changed files with 55 additions and 22 deletions
@ -0,0 +1 @@ |
|||
Test text file since the dir can't be empty and I need to test out dir functionality. |
@ -1,13 +1,13 @@ |
|||
context("basic functionality") |
|||
test_that("we can do something", { |
|||
|
|||
tmp <- incant(list.files(system.file("img", package="wand"), |
|||
full.names=TRUE), |
|||
magic_wand_file()) |
|||
tmp <- tmp$description |
|||
tmp <- unlist(tmp, use.names=FALSE) |
|||
tmp <- sort(tmp) |
|||
|
|||
expect_that(substr(tmp[8], 1, 3), equals("PNG")) |
|||
|
|||
}) |
|||
context("basic functionality") |
|||
test_that("we can do something", { |
|||
|
|||
tmp <- incant(list.files(system.file("img", package="wand"), |
|||
full.names=TRUE), |
|||
magic_wand_file()) |
|||
tmp <- tmp$description |
|||
tmp <- unlist(tmp, use.names=FALSE) |
|||
tmp <- sort(tmp) |
|||
|
|||
expect_that(any(substr(tmp, 1, 3) == "PNG"), equals(TRUE)) |
|||
|
|||
}) |
|||
|
Loading…
Reference in new issue