1 parent d33b7fb commit f03cda6Copy full SHA for f03cda6
1 file changed
tests/tests.R
@@ -405,7 +405,8 @@ test_identical(jsondec('{"x":-}'), list()) # Invalid number (bare minus)
405
test_identical(jsondec('-'), list()) # Top-level invalid number
406
test_identical(jsondec('{"x":--1}'), list()) # Double minus
407
test_identical(jsondec('["a'), list()) # Unterminated string in array
408
-test_identical(jsondec(jsonenc(.libPaths())), as.list(.libPaths()))
+paths <- c(.libPaths(), tempdir())
409
+test_identical(jsondec(jsonenc(paths)), as.list(paths))
410
if (!(.Platform[["OS.type"]] == "windows" && getRversion() < "4.2")) {
411
# Unicode escape sequence tests (RFC 8259 Section 7):
412
test_equal(jsondec('{"a":"\\u0041"}')[["a"]], "A") # U+0041 = A (ASCII via Unicode escape)
0 commit comments