tests/testthat/test-5-duplex.R

# ~~~~~~~ DuplexStream ~~~~~ #

test_that(
    "5.1.1 DuplexStreams can be created",
    code = {
        expect_error(DuplexStream$new(tempfile()), NA)
        expect_error(DuplexStream$new(mtcars), NA)
        expect_error(DuplexStream$new(1:10), NA)
    }
)
ElianHugh/emitters documentation built on Feb. 6, 2022, 4:55 a.m.