-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #179 from Merck/test-native-pipe
use native pipe in testthat
- Loading branch information
Showing
31 changed files
with
453 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
test_that("Case when colheader equals to NULL", { | ||
x <- iris %>% rtf_colheader(colheader = "") | ||
x <- iris |> rtf_colheader(colheader = "") | ||
expect_null(as_rtf_colheader(x)) | ||
|
||
x <- iris %>% rtf_colheader(colheader = "", border_color_left = "red") | ||
x <- iris |> rtf_colheader(colheader = "", border_color_left = "red") | ||
expect_null(as_rtf_colheader(x)) | ||
}) | ||
|
||
test_that("Case when colheader is not NULL and border color is specified", { | ||
x <- iris %>% rtf_colheader(colheader = "a | b| c", border_color_left = "green") | ||
x <- iris |> rtf_colheader(colheader = "a | b| c", border_color_left = "green") | ||
expect_snapshot_output(as_rtf_colheader(x)) | ||
|
||
x <- iris %>% rtf_colheader(colheader = "a | b| c", border_color_left = "red", border_color_right = "red") | ||
x <- iris |> rtf_colheader(colheader = "a | b| c", border_color_left = "red", border_color_right = "red") | ||
expect_snapshot_output(as_rtf_colheader(x)) | ||
}) | ||
|
||
test_that("case when colheader is not NULL and border type is specified", { | ||
x <- iris %>% rtf_colheader(colheader = "a | b| c", border_right = "double") | ||
x <- iris |> rtf_colheader(colheader = "a | b| c", border_right = "double") | ||
expect_snapshot_output(as_rtf_colheader(x)) | ||
|
||
x <- iris %>% rtf_colheader(colheader = "a | b| c", border_top = "dot dash") | ||
x <- iris |> rtf_colheader(colheader = "a | b| c", border_top = "dot dash") | ||
expect_snapshot_output(as_rtf_colheader(x)) | ||
}) | ||
|
||
test_that("case when colheader is not NULL and cell text formats is specified", { | ||
x <- iris %>% rtf_colheader(colheader = "a | b| c", text_format = "i") | ||
x <- iris |> rtf_colheader(colheader = "a | b| c", text_format = "i") | ||
expect_snapshot_output(as_rtf_colheader(x)) | ||
|
||
x <- iris %>% rtf_colheader(colheader = "a | b| c", text_format = "b") | ||
x <- iris |> rtf_colheader(colheader = "a | b| c", text_format = "b") | ||
expect_snapshot_output(as_rtf_colheader(x)) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.