Skip to content

Commit

Permalink
back to working state
Browse files Browse the repository at this point in the history
  • Loading branch information
verajosemanuel committed Feb 24, 2018
1 parent ccdb36f commit 50bc85b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 154 deletions.
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
import(magrittr)
import(xml2)
export(to_number)
export(to_words)
126 changes: 0 additions & 126 deletions R/to_words.R

This file was deleted.

27 changes: 0 additions & 27 deletions tests/testthat/test-spanish.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,3 @@ test_that("to_number error message when unexpected string.", {

expect_error(to_number("Esto no es un numero, ya ves."), "*unexpected input*")
})


test_that("to_words returns character vector from integer.", {
result <- to_words("1234")

expect_type(result, "character")
})


test_that("to_words returns a correct translation from integer.", {
result <- to_words(1234)
target <- "mil doscientos treinta y cuatro"
expect_equivalent(result, target)
})


test_that("to_words works ok with millions from integer.", {
result <- to_words(2482103)
target <- "dos millones cuatrocientos ochenta y dosmil ciento tres"
expect_equivalent(result, target)
})


test_that("to_words error message when unexpected number.", {

expect_error(to_words("Esto no es un numero, ya ves."), "*unexpected input*")
})

0 comments on commit 50bc85b

Please sign in to comment.