Skip to content

Commit 3bc1d93

Browse files
committed
add test for message being passed
1 parent ee3d2d1 commit 3bc1d93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

inst/tinytest/test_misc.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,6 @@ expect_true(getRcppVersion(devel=TRUE) >= getRcppVersion(devel=FALSE), info="dev
184184
# expect_true(FALSE, info="oh noes")
185185

186186
## test that a message is output as is, and a suppressedMessage is not
187-
expect_equal(capture.output( messageWrapper("ABCdef"), type="message"), "ABCdef")
188-
expect_equal(capture.output( suppressMessages(messageWrapper("ABCdef")), type="message"), character())
187+
expect_equal(capture.output(messageWrapper("ABCdef"), type="message"), "ABCdef")
188+
expect_equal(capture.output(suppressMessages(messageWrapper("ABCdef")), type="message"), character())
189+
expect_message(messageWrapper("ABCdef"))

0 commit comments

Comments
 (0)