Skip to content

Commit

Permalink
move multichannel interlaced test to test-interlaced
Browse files Browse the repository at this point in the history
  • Loading branch information
khusmann committed Sep 5, 2024
1 parent 9f0e4de commit 2965f37
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
15 changes: 15 additions & 0 deletions tests/testthat/test-interlaced.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,18 @@ test_that("vec_arith works", {
c(20, 4, NA, 6, NA, 18, 2)
)
})

test_that("multichannel comparisons work", {
expect_true(NA %==% NA)
expect_true(5 %==% 5)
expect_false(NA %==% 5)
expect_false(5 %==% NA)

expect_true(na("reason") %==% na("reason"))
expect_false(na("reason") %==% 5)
expect_false(5 %==% na("reason"))
expect_false(na("reason2") %==% na("reason"))
expect_false(na("reason") %==% na("reason2"))
expect_false(NA %==% na("reason"))
expect_false(na("reason") %==% NA)
})
15 changes: 0 additions & 15 deletions tests/testthat/test-type-interlaced.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,3 @@ test_that("interlaced type casting is unchanging", {
expect_true(all(grepl("^interlaced", na.omit(mat))))
expect_snapshot(mat)
})

test_that("multichannel comparisons work", {
expect_true(NA %==% NA)
expect_true(5 %==% 5)
expect_false(NA %==% 5)
expect_false(5 %==% NA)

expect_true(na("reason") %==% na("reason"))
expect_false(na("reason") %==% 5)
expect_false(5 %==% na("reason"))
expect_false(na("reason2") %==% na("reason"))
expect_false(na("reason") %==% na("reason2"))
expect_false(NA %==% na("reason"))
expect_false(na("reason") %==% NA)
})

0 comments on commit 2965f37

Please sign in to comment.