Skip to content

Commit

Permalink
Added test of issue vubiostat#105
Browse files Browse the repository at this point in the history
  • Loading branch information
spgarbet committed Sep 13, 2021
1 parent 8bb78da commit 1a90ba9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions inst/tests/test_as_yaml.R
Original file line number Diff line number Diff line change
Expand Up @@ -444,5 +444,12 @@ test_custom_tag_for_unnamed_list <- function() {
test_latin1_strings <- function() {
data <- list(description = enc2native("á"))
result <- as.yaml(data)
checkEquals(result, enc2utf8("description: á\n"))
}
checkEquals(result, "description: á\n")
}

test_unknown_strings <- function() {
data <- list(x="\x9b")
result <- as.yaml(data)
checkEquals(result, "x: <9b>\n")
}

0 comments on commit 1a90ba9

Please sign in to comment.