Skip to content

Commit 5519ce9

Browse files
committed
Add known output test
1 parent 1cc6729 commit 5519ce9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

tests/testthat/blob.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[1] blob[4.00 B] blob[2.05 kB] blob[1.05 MB]

tests/testthat/test-format.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@ test_that("similar sizes", {
4545
)
4646
)
4747
})
48+
49+
test_that("output", {
50+
skip_on_cran()
51+
52+
x <- blob(raw(2 ** 2), raw(2 ** 11), raw(2 ** 20))
53+
54+
expect_known_output(print(x), "blob.txt")
55+
})

0 commit comments

Comments
 (0)