Skip to content

Commit

Permalink
Replace Unicode character in cli_li()
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Mar 9, 2022
1 parent cd648fc commit 179dd86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/utils-cli.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ cli_rule <- function(x, y) {
#'
#' @noRd
cli_li <- function(...) {
bullet <- "\u2022"
bullet <- "-"
cli_text(bullet, " ", ...)
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-independent-test_utils_cli.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ testthat::test_that("cli_li prints string with a leading bullet point", {
strs <- "This is a test heading "
strs2 <- "plus other things"
cli_li(strs,strs2)
testthat::expect_output(cli_li(strs,strs2), regexp="\u2022 This is a test heading plus other things")
testthat::expect_output(cli_li(strs,strs2), regexp="- This is a test heading plus other things")
})
#test cli_str
testthat::test_that("cli_str create strings with double quotation in blue when printed in console", {
Expand Down

0 comments on commit 179dd86

Please sign in to comment.