-
-
Notifications
You must be signed in to change notification settings - Fork 205
test: merged and refactored flow.R tests #1675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1064771
merged and refactored flow.R tests
schochastics 76dcbdd
fixed failing tests
schochastics 3bf022a
added more error tests
schochastics ba73938
added better R error handling
schochastics b11a3c9
fixed cli calls
schochastics f3ab2c5
fixed test names
schochastics ce6cb74
converted error tests to snapshot tests
schochastics 3dedcab
fixed dominator_tree tests
schochastics File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| # st_cuts errors work | ||
|
|
||
| Code | ||
| st_cuts(g_path, source = "a", target = NULL) | ||
| Condition | ||
| Error in `st_cuts()`: | ||
| ! No vertex was specified | ||
|
|
||
| --- | ||
|
|
||
| Code | ||
| st_cuts(g_path, source = NULL, target = "a") | ||
| Condition | ||
| Error in `st_cuts()`: | ||
| ! No vertex was specified | ||
|
|
||
| --- | ||
|
|
||
| Code | ||
| st_min_cuts(g_path, source = "a", target = NULL) | ||
| Condition | ||
| Error in `st_min_cuts()`: | ||
| ! No vertex was specified | ||
|
|
||
| --- | ||
|
|
||
| Code | ||
| st_min_cuts(g_path, source = NULL, target = "a") | ||
| Condition | ||
| Error in `st_min_cuts()`: | ||
| ! No vertex was specified | ||
|
|
||
| # vertex_connectivity error works | ||
|
|
||
| Code | ||
| vertex_connectivity(g_path, source = 1) | ||
| Condition | ||
| Error in `vertex_connectivity()`: | ||
| ! `source` and `target` must not be specified at the same time. | ||
| i Specify either `source` or `target` or neither. | ||
|
|
||
| # edge_connectivity error works | ||
|
|
||
| Code | ||
| edge_connectivity(g_path, source = 1) | ||
| Condition | ||
| Error in `edge_connectivity()`: | ||
| ! `source` and `target` must not be specified at the same time. | ||
| i Specify either `source` or `target` or neither. | ||
|
|
||
| # edge_disjoint_paths error works | ||
|
|
||
| Code | ||
| edge_disjoint_paths(g_path, source = 1, target = NULL) | ||
| Condition | ||
| Error in `edge_disjoint_paths()`: | ||
| ! Both source and target must be given | ||
|
|
||
| --- | ||
|
|
||
| Code | ||
| edge_disjoint_paths(g_path, source = NULL, target = 1) | ||
| Condition | ||
| Error in `edge_disjoint_paths()`: | ||
| ! Both source and target must be given | ||
|
|
||
| # vertex_disjoint_paths error works | ||
|
|
||
| Code | ||
| vertex_disjoint_paths(g_path, source = 1) | ||
| Condition | ||
| Error in `vertex_disjoint_paths()`: | ||
| ! Both source and target must be given | ||
|
|
||
| --- | ||
|
|
||
| Code | ||
| vertex_disjoint_paths(g_path, source = 1) | ||
| Condition | ||
| Error in `vertex_disjoint_paths()`: | ||
| ! Both source and target must be given | ||
|
|
||
| # dominator_tree errors work | ||
|
|
||
| Code | ||
| dominator_tree(g_tree) | ||
| Condition | ||
| Error in `dominator_tree()`: | ||
| ! `root` must be specified. | ||
|
|
||
| --- | ||
|
|
||
| Code | ||
| dominator_tree(g_tree, root = NULL) | ||
| Condition | ||
| Error in `dominator_tree()`: | ||
| ! `root` must be specified. | ||
|
|
||
| # min_st_separators() works for the note case | ||
|
|
||
| Code | ||
| min_st_separators(g_note) | ||
| Output | ||
| [[1]] | ||
| + 1/5 vertex, named, from something | ||
| [1] 1 | ||
|
|
||
| [[2]] | ||
| + 2/5 vertices, named, from something | ||
| [1] 2 4 | ||
|
|
||
| [[3]] | ||
| + 2/5 vertices, named, from something | ||
| [1] 1 3 | ||
|
|
||
|
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.