# ==================================================================== # # TITLE # # cleaner: Fast and Easy Data Cleaning # # # # SOURCE # # https://github.com/msberends/cleaner # # # # LICENCE # # (c) 2022 Berends MS (m.s.berends@umcg.nl) # # # # This R package is free software; you can freely use and distribute # # it for both personal and commercial purposes under the terms of the # # GNU General Public License version 2.0 (GNU GPL-2), as published by # # the Free Software Foundation. # # # # This R package was publicly released in the hope that it will be # # useful, but it comes WITHOUT ANY WARRANTY OR LIABILITY. # # ==================================================================== # context("currency.R") test_that("currency works", { expect_true(is.currency(clean_currency(c("no5538", "no929", "yes2390", "no841", "no2610")))) expect_identical(symb2txt(txt2symb("EUR")), "EUR") })