Neal Richardson created ARROW-8187:
--------------------------------------

             Summary: [R] Make test assertions robust to i18n
                 Key: ARROW-8187
                 URL: https://issues.apache.org/jira/browse/ARROW-8187
             Project: Apache Arrow
          Issue Type: Improvement
          Components: R
            Reporter: Antoine Pitrou
            Assignee: Neal Richardson
             Fix For: 0.17.0


{code}
── 1. Failure: codec_is_available (@test-compressed.R#22)  ─────────────────────
`codec_is_available("sdfasdf")` threw an error with unexpected message.
Expected match: "'arg' should be one of"
Actual message: "'arg' doit être un de “UNCOMPRESSED”, “SNAPPY”, “GZIP”, 
“BROTLI”, “ZSTD”, “LZ4”, “LZO”, “BZ2”"
Backtrace:
  1. testthat::expect_error(codec_is_available("sdfasdf"), "'arg' should be one 
of") testthat/test-compressed.R:22:2
  6. arrow::codec_is_available("sdfasdf")
  8. arrow:::compression_from_name(type)
  9. purrr::map_int(...)
 10. arrow:::.f(.x[[i]], ...)
 11. base::match.arg(toupper(.x), names(CompressionType))

── 2. Failure: time type unit validation (@test-data-type.R#298)  ──────────────
`time32("years")` threw an error with unexpected message.
Expected match: "'arg' should be one of"
Actual message: "'arg' doit être un de “ms”, “s”"
Backtrace:
 1. testthat::expect_error(time32("years"), "'arg' should be one of") 
testthat/test-data-type.R:298:2
 6. arrow::time32("years")
 7. base::match.arg(unit)

── 3. Failure: time type unit validation (@test-data-type.R#305)  ──────────────
`time64("years")` threw an error with unexpected message.
Expected match: "'arg' should be one of"
Actual message: "'arg' doit être un de “ns”, “us”"
Backtrace:
 1. testthat::expect_error(time64("years"), "'arg' should be one of") 
testthat/test-data-type.R:305:2
 6. arrow::time64("years")
 7. base::match.arg(unit)

── 4. Failure: decimal type and validation (@test-data-type.R#387)  ────────────
`decimal()` threw an error with unexpected message.
Expected match: "argument \"precision\" is missing, with no default"
Actual message: "l'argument \"precision\" est manquant, avec aucune valeur par 
défaut"
Backtrace:
 1. testthat::expect_error(decimal(), "argument \"precision\" is missing, with 
no default") testthat/test-data-type.R:387:2
 6. arrow::decimal()

── 5. Failure: decimal type and validation (@test-data-type.R#389)  ────────────
`decimal(4)` threw an error with unexpected message.
Expected match: "argument \"scale\" is missing, with no default"
Actual message: "l'argument \"scale\" est manquant, avec aucune valeur par 
défaut"
Backtrace:
 1. testthat::expect_error(decimal(4), "argument \"scale\" is missing, with no 
default") testthat/test-data-type.R:389:2
 6. arrow::decimal(4)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to