Running ‘testthat.R’ [16s/32s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > #This file runs all unit tests on every R CMD check.
  > #Comment this out to disable.
  > 
  > library(testthat)
  > 
  > #filter is to disable tests that rely on external servers
  > test_check("jsonlite", filter="toJSON|fromJSON|libjson|serializeJSON")
  Loading required package: jsonlite
  [ FAIL 16 | WARN 0 | SKIP 0 | PASS 1502 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-toJSON-POSIXt.R:13:3): Encoding POSIXt Objects ────────────────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "[\"2013-06-17 22:33:44\"]"
  y[1]: "[\"2013-06-17T22:33:44\"]"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:13:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(toJSON(object, POSIXt = "ISO8601"), equals("[\"2013-06-17T22:33:44\"]")) at test-toJSON-POSIXt.R:16:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:13:3): Encoding POSIXt Objects ────────────────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "[\"2013-06-17 22:33:44\"]"
  y[1]: "[\"2013-06-17T22:33:44\"]"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:13:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(toJSON(object, POSIXt = "ISO8601"), equals("[\"2013-06-17T22:33:44\"]")) at test-toJSON-POSIXt.R:16:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:13:3): Encoding POSIXt Objects ────────────────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "[\"2013-06-17 22:33:44\"]"
  y[1]: "[\"2013-06-17T22:33:44\"]"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:13:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(toJSON(object, POSIXt = "ISO8601"), equals("[\"2013-06-17T22:33:44\"]")) at test-toJSON-POSIXt.R:16:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:13:3): Encoding POSIXt Objects ────────────────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "[\"2013-06-17 22:33:44\"]"
  y[1]: "[\"2013-06-17T22:33:44\"]"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:13:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(toJSON(object, POSIXt = "ISO8601"), equals("[\"2013-06-17T22:33:44\"]")) at test-toJSON-POSIXt.R:16:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:30:3): Encoding POSIXt object in a list ───────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "{\"foo\":[\"2013-06-17 22:33:44\"]}"
  y[1]: "{\"foo\":[\"2013-06-17T22:33:44\"]}"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:30:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(...) at test-toJSON-POSIXt.R:33:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:30:3): Encoding POSIXt object in a list ───────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "{\"foo\":[\"2013-06-17 22:33:44\"]}"
  y[1]: "{\"foo\":[\"2013-06-17T22:33:44\"]}"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:30:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(...) at test-toJSON-POSIXt.R:33:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:30:3): Encoding POSIXt object in a list ───────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "{\"foo\":[\"2013-06-17 22:33:44\"]}"
  y[1]: "{\"foo\":[\"2013-06-17T22:33:44\"]}"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:30:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(...) at test-toJSON-POSIXt.R:33:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:30:3): Encoding POSIXt object in a list ───────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "{\"foo\":[\"2013-06-17 22:33:44\"]}"
  y[1]: "{\"foo\":[\"2013-06-17T22:33:44\"]}"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:30:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(...) at test-toJSON-POSIXt.R:33:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:46:3): Encoding POSIXt object in a list ───────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "[{\"foo\":\"2013-06-17 22:33:44\"}]"
  y[1]: "[{\"foo\":\"2013-06-17T22:33:44\"}]"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:46:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(...) at test-toJSON-POSIXt.R:49:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:46:3): Encoding POSIXt object in a list ───────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "[{\"foo\":\"2013-06-17 22:33:44\"}]"
  y[1]: "[{\"foo\":\"2013-06-17T22:33:44\"}]"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:46:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(...) at test-toJSON-POSIXt.R:49:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:46:3): Encoding POSIXt object in a list ───────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "[{\"foo\":\"2013-06-17 22:33:44\"}]"
  y[1]: "[{\"foo\":\"2013-06-17T22:33:44\"}]"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:46:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(...) at test-toJSON-POSIXt.R:49:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-POSIXt.R:46:3): Encoding POSIXt object in a list ───────
  `x` not equal to `expected`.
  1/1 mismatches
  x[1]: "[{\"foo\":\"2013-06-17 22:33:44\"}]"
  y[1]: "[{\"foo\":\"2013-06-17T22:33:44\"}]"
  Backtrace:
      ▆
   1. └─base::lapply(...) at test-toJSON-POSIXt.R:46:2
   2.   └─jsonlite (local) FUN(X[[i]], ...)
   3.     └─testthat::expect_that(...) at test-toJSON-POSIXt.R:49:4
   4.       └─testthat (local) condition(object)
   5.         └─testthat::expect_equal(x, expected, ..., expected.label = label)
  ── Failure (test-toJSON-keep-vec-names.R:19:3): keep_vec_names with named vectors ──
  toJSON2(c(a = as.POSIXct("2015-01-01 3:00:00"))) not equal to "{\"a\":\"2015-01-01 03:00:00\"}".
  1/1 mismatches
  x[1]: "\"2015-01-01 03:00:00\""
  y[1]: "{\"a\":\"2015-01-01 03:00:00\"}"
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-toJSON-keep-vec-names.R:19:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─testthat::expect_equal(...)
  ── Failure (test-toJSON-keep-vec-names.R:19:3): keep_vec_names with named vectors ──
  `expect_equal(...)` did not produce any messages.
  ── Failure (test-toJSON-keep-vec-names.R:20:3): keep_vec_names with named vectors ──
  toJSON2(c(a = as.POSIXlt("2015-01-01 3:00:00"))) not equal to "{\"a\":\"2015-01-01 03:00:00\"}".
  1/1 mismatches
  x[1]: "\"2015-01-01 03:00:00\""
  y[1]: "{\"a\":\"2015-01-01 03:00:00\"}"
  Backtrace:
      ▆
   1. ├─testthat::expect_message(...) at test-toJSON-keep-vec-names.R:20:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─testthat::expect_equal(...)
  ── Failure (test-toJSON-keep-vec-names.R:20:3): keep_vec_names with named vectors ──
  `expect_equal(...)` did not produce any messages.
  
  [ FAIL 16 | WARN 0 | SKIP 0 | PASS 1502 ]
  Error: Test failures
  Execution halted