Skip to content

Commit

Permalink
fixed a syntax error
Browse files Browse the repository at this point in the history
I should test before committing next time. Even for small changes.
  • Loading branch information
kev-ho committed Oct 27, 2017
1 parent d227a03 commit 768fdeb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/test-swdi.R
@@ -1,6 +1,5 @@
context("swdi")


get_cordinates_df <- function(swdi_output) {
swdi_output$shape %>%
dplyr::mutate(shape = sub(".*POINT.*\\(","",shape)) %>%
Expand Down Expand Up @@ -75,5 +74,5 @@ test_that("Radius coordinates return correctly", {

coordinates$distance <- meteo_spherical_distance(lat1=center[2], long1=center[1], lat2=coordinates[2][[1]], long2=coordinates[1][[1]])

expect_true(reduce(coordinates$distance < radius * 1.609344))
expect_true(Reduce("&",coordinates$distance < radius * 1.609344))
})

0 comments on commit 768fdeb

Please sign in to comment.