Skip to content

Commit

Permalink
add teste relacionado ao #13
Browse files Browse the repository at this point in the history
  • Loading branch information
dhersz committed Oct 15, 2024
1 parent 82bca62 commit 2e91614
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/testthat/test-padronizar_enderecos.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,16 @@ test_that("respeita manter_cols_extras", {
)
)
})

# issue #13 - https://github.com/ipeaGIT/enderecopadrao/issues/13
test_that("funciona qnd coluna existe mas nao eh pra ser padronizada", {
ends <- data.frame(logradouro = "r ns sra da piedade", numero = 20)
expect_identical(
tester(ends, correspondencia_campos(logradouro = "logradouro")),
data.table::data.table(
numero = 20,
logradouro = "r ns sra da piedade",
logradouro_padr = "RUA NOSSA SENHORA DA PIEDADE"
)
)
})

0 comments on commit 2e91614

Please sign in to comment.