tests/testthat/test-clean_data.R

library(dplyr)
library(testthat)

dataclean <- NOAAdata %>%
  eq_clean_data() %>%
  eq_location_clean()

test_that("Clean location", {
  expect_equal(head(dataclean$Location), c("Nisa",
                                                "Turkey",
                                                "Izmir, Efes, Aydin, Manisa, Alasehir, Sart",
                                                "Greece",
                                                "Pakistan" ,
                                                "Kwangju"  ))
})
BFavetto/EarthquakeAnalysis documentation built on Dec. 17, 2021, 9:50 a.m.