inst/tinytest/test_cockburn_replace_standard_names.r

## -------->>  [[file:../../nstandr.src.org::*Standard Name][Standard Name:2]]
expect_equal(c("WESTINGHOUSE, |.?^&*@ ELEC  "
             , "GRACE (W EN R) & CO - òâêîé  PUBLIC LIMITED "
             , "GRACE (W/R) & CO LTD ") |>
             cockburn_replace_standard_names(output_placement = "append_to_x")
           , structure(list(x = c("WESTINGHOUSE, |.?^&*@ ELEC  ", "GRACE (W EN R) & CO - òâêîé  PUBLIC LIMITED ", 
                                  "GRACE (W/R) & CO LTD "), std_x = c("WESTINGHOUSE, |.?^&*@ ELEC  ", 
                                                                      "GRACE (W EN R) & CO - òâêîé  PUBLIC LTD ", "GRACE (W/R) & CO LTD "
                                                                      )), row.names = c(NA, -3L), class = c("data.table", "data.frame")))
## --------<<  Standard Name:2 ends here
stasvlasov/nstandr documentation built on July 27, 2023, 10:29 p.m.