Running ‘realtest.R’
Running the tests in ‘tests/realtest.R’ failed.
Complete output:
  > # This file is part of the 'stringx' project.
  > # Copyleft (c) 2021, Marek Gagolewski <https://www.gagolewski.com>
  > 
  > # Runs all unit tests for the package
  > 
  > this_package <- "stringx"
  > 
  > set.seed(123)
  > library(this_package, character.only=TRUE)
  
  Attaching package: 'stringx'
  
  The following objects are masked from 'package:base':
  
      casefold, chartr, endsWith, gregexec, gregexpr, grep, grepl, gsub,
      nchar, nzchar, paste, paste0, regexec, regexpr, sprintf,
      startsWith, strftime, strptime, strrep, strsplit, strtrim, strwrap,
      sub, substr, substr<-, substring, substring<-, tolower, toupper,
      trimws, xtfrm, xtfrm.default
  
  > if (require("realtest", quietly=TRUE)) {
  +     f <- file.path(path.package(this_package), "realtest")
  +     r <- test_dir(f, ".*\\.R$")
  +     s <- summary(r)
  +     print(s)
  +     stopifnot(all(s[["match"]] != "fail"))
  + }
  *** realtest: test summary:
                        
                         bad better best pass fail
    casemap-all.R          9      0    0   12    0
    casemap-stringx.R      0      0    0    2    0
    chartr-all.R           0      0    0   10    0
    chartr-stringx.R       0      0    0    1    0
    constants-stringx.R    0      0    0   10    0
    gregexpr-all.R         0     14    0   30    0
    gregexpr-stringx.R     0      0    0   14    0
    gregextr-stringx.R     0      0    0   38    0
    grepl-all.R            0     22    0   35    0
    grepl-stringx.R        0      0    0   17    0
    gsub-all.R             0      0    0   31    0
    gsub-stringx.R         0      0    0   14    0
    nchar-all.R            0      1    1   11    2
    paste-all.R            0      0    0   14    0
    paste-stringx.R        0      0    0   31    0
    sort-all.R             0      0    0    8    0
    sort-stringx.R         0      0    0    5    0
    sprintf-all.R          0      1    0   28    0
    sprintf-stringx.R      0      0    0    2    0
    startswith-all.R       0      0    0   20    0
    startswith-stringx.R   0      0    0   10    0
    strcoll-stringx.R      0      0    0   13    0
    strptime-all.R         2      2    0   22    0
    strptime-stringx.R     0      0    0    8    0
    strrep-all.R           0      0    0   16    0
    strrep-stringx.R       0      0    0    9    0
    strsplit-all.R         0      0    0   29    0
    strsplit-stringx.R     0      0    0   11    0
    strtrim-all.R          1      0    0   20    2
    strwrap-all.R          0      0    0   14    2
    substr-all.R           0      3    0   19    0
    substr-stringx.R       0      0    0   18    0
    trimws-all.R           0      1    0   14    0
  
  *** realtest: failed test details:
                     call match
  268               nchar  fail
  269               nchar  fail
  523             strtrim  fail
  524             strtrim  fail
  541 stringi::stri_width  fail
  542 stringi::stri_width  fail
                                                    .file .line
  268   /home/ripley/R/Lib32/stringx/realtest/nchar-all.R    39
  269   /home/ripley/R/Lib32/stringx/realtest/nchar-all.R    45
  523 /home/ripley/R/Lib32/stringx/realtest/strtrim-all.R    59
  524 /home/ripley/R/Lib32/stringx/realtest/strtrim-all.R    66
  541 /home/ripley/R/Lib32/stringx/realtest/strwrap-all.R    33
  542 /home/ripley/R/Lib32/stringx/realtest/strwrap-all.R    34
  
  Error: all(s[["match"]] != "fail") is not TRUE
  Execution halted