Skip to content

Commit

Permalink
one more test fix for #236
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 9, 2024
1 parent 7af79d5 commit 9775b32
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 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.4.1.022
Version: 0.4.1.023
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 R/graph-contraction.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dodgr_contract_graph <- function (graph, verts = NULL, nocache = FALSE) {
if (!is.character (verts)) {
message (
"'verts' will be presumed to be character labels",
"matching 'id' columns of 'dodgr_vertices()'."
" matching 'id' columns of 'dodgr_vertices()'."
)
verts <- paste0 (verts)
}
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"codeRepository": "https://github.com/UrbanAnalyst/dodgr",
"issueTracker": "https://github.com/UrbanAnalyst/dodgr/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.4.1.022",
"version": "0.4.1.023",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
5 changes: 4 additions & 1 deletion tests/testthat/test-graph-fns.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ test_that ("contract graph", {
)

verts <- as.numeric (verts [, 1])
expect_silent (graph_c4 <- dodgr_contract_graph (graph, verts = verts))
expect_message (
graph_c4 <- dodgr_contract_graph (graph, verts = verts),
"'verts' will be presumed to be character labels matching"
)
expect_identical (graph_c2, graph_c4)
})

Expand Down

0 comments on commit 9775b32

Please sign in to comment.