Skip to content

Commit

Permalink
fix tests to close #207
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Apr 27, 2023
1 parent 9dfbe61 commit f5f5289
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dodgr
Title: Distances on Directed Graphs
Version: 0.2.20.004
Version: 0.2.20.005
Authors@R: c(
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre")),
person("Andreas", "Petutschnig", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/ATFutures/dodgr",
"issueTracker": "https://github.com/ATFutures/dodgr/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.20.004",
"version": "0.2.20.005",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
6 changes: 0 additions & 6 deletions tests/testthat/test-graph-fns.R
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,6 @@ test_that ("graph columns", {
)

graph <- data.frame (weight_streetnet (hampi)) # rm dodgr_streetnet class
graph$d2 <- graph$d
expect_error (
d <- dodgr_dists (graph, from = from, to = to),
"Unable to determine distance column in graph"
)
graph$d2 <- NULL
graph$d_wt <- graph$d_weighted
expect_error (
d <- dodgr_dists (graph, from = from, to = to),
Expand Down

0 comments on commit f5f5289

Please sign in to comment.