diff --git a/tests/testthat/test-interlaced.R b/tests/testthat/test-interlaced.R index 6723065..fd809cb 100644 --- a/tests/testthat/test-interlaced.R +++ b/tests/testthat/test-interlaced.R @@ -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) +}) diff --git a/tests/testthat/test-type-interlaced.R b/tests/testthat/test-type-interlaced.R index a1110f5..2f519da 100644 --- a/tests/testthat/test-type-interlaced.R +++ b/tests/testthat/test-type-interlaced.R @@ -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) -})