Nothing
# test binary attributes
enumerate <- 0L
errorfun <- function(tt) {
if(isFALSE(tt)) stop(print(tt))
}
.test_binary <- broadcast:::.test_binary
.test_binary_class <- broadcast:::.test_binary_class
.test_binary_zerolen <- broadcast:::.test_binary_zerolen
types <- c("raw", "logical", "integer", "double", "complex", "character")
bc.fun <- \(x, y) bc.rel(x, y, "==")
# attributes tests (equals) ====
res <- .test_binary_class(bc.fun, types, types)
expect_equal(
res$expected_bc, res$out_bc
)
expect_false(
identical(res$expected_comm, res$out_comm)
)
expect_false(
identical(res$expected_ma, res$out_ma)
)
enumerate <- enumerate + res$i
# zerolen tests ====
bc.fun <- \(x, y) bc.rel(x, y, "==")
res <- .test_binary_zerolen(bc.fun, is.logical, types, types)
expect_true(all(res$is_OK_type))
expect_equal(
res$expected_bc, res$out_bc
)
expect_false(
identical(res$expected_comm, res$out_comm)
)
enumerate <- enumerate + res$i
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.