-
-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged test-notable.R into test-make.R
- Loading branch information
1 parent
46c9aea
commit 2e994bb
Showing
2 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +0,0 @@ | ||
test_that("make_graph for notable graphs is case insensitive", { | ||
g <- make_graph("Levi") | ||
g2 <- make_graph("levi") | ||
expect_true(identical_graphs(g, g2)) | ||
}) | ||
|
||
test_that("spaces are replaced in make_graph for notable graphs", { | ||
g <- make_graph("Krackhardt_Kite") | ||
g2 <- make_graph("Krackhardt kite") | ||
expect_true(identical_graphs(g, g2)) | ||
}) | ||
|
||
test_that("warnings are given for extra arguments in make_graph for notables", { | ||
g0 <- make_graph("Levi") | ||
expect_warning(g1 <- make_graph("Levi", n = 10)) | ||
expect_warning(g2 <- make_graph("Levi", isolates = "foo")) | ||
expect_warning(g3 <- make_graph("Levi", directed = FALSE)) | ||
expect_true(identical_graphs(g0, g1)) | ||
expect_true(identical_graphs(g0, g2)) | ||
expect_true(identical_graphs(g0, g3)) | ||
}) | ||