Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
fix test comparing numbers via string
Browse files Browse the repository at this point in the history
this failed on CRAN platforms without support for long doubles, see #131
  • Loading branch information
nuest committed Apr 28, 2020
1 parent 47532b7 commit 326b458
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ No notes.

## Other

Resubmission after being informed about invalid file URIs (Uwe Ligges).
Resubmission after being informed about (i) invalid file URIs and (ii) failures on platforms without support for long doubles (both by Uwe Ligges).

This is a re-release following a CRAN takedown earlier this year. The package is only released now as new feature implementations were pending.
5 changes: 4 additions & 1 deletion tests/testthat/test_capabilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ test_that("can extract bbox from bounds of offering", {
offering <- parseSosObservationOffering(obj = doc, sos = testsos)

box <- sosBoundedBy(offering, bbox = TRUE)
expect_equal(toString(box), "-44.7159634789651, -171.370441435668, 67.972129750194, 142.92375463033")
expect_equal(box[1,1], -44.7159634)
expect_equal(box[2,1], -171.370441)
expect_equal(box[1,2], 67.9721297)
expect_equal(box[2,2], 142.9237546)
})

context("parsing: operations metadata")
Expand Down

0 comments on commit 326b458

Please sign in to comment.