Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8187

[R] Make test assertions robust to i18n

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.17.0
    • R

    Description

      ── 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)
      

      Attachments

        Issue Links

          Activity

            People

              npr Neal Richardson
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h