Skip to content

Commit

Permalink
refactored and merged tests for make.R
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Feb 13, 2025
1 parent da62f3d commit bbc888e
Show file tree
Hide file tree
Showing 9 changed files with 416 additions and 298 deletions.
193 changes: 96 additions & 97 deletions R/make.R

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions tests/testthat/_snaps/make.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
# error messages are proper

Code
make_()
Condition
Error in `.extract_constructor_and_modifiers()`:
! Don't know how to make_, nothing given
Code
make_(1:10)
Condition
Error in `.extract_constructor_and_modifiers()`:
! Don't know how to make_, nothing given
Code
graph_()
Condition
Error in `.extract_constructor_and_modifiers()`:
! Don't know how to graph_, nothing given
Code
graph_(1:10)
Condition
Error in `.extract_constructor_and_modifiers()`:
! Don't know how to graph_, nothing given
Code
graph_(directed_graph(), directed_graph())
Condition
Error in `.extract_constructor_and_modifiers()`:
! Don't know how to graph_, multiple constructors given
Code
sample_()
Condition
Error in `.extract_constructor_and_modifiers()`:
! Don't know how to sample_, nothing given
Code
sample_(1:10)
Condition
Error in `.extract_constructor_and_modifiers()`:
! Don't know how to sample_, nothing given
Code
sample_(directed_graph(), directed_graph())
Condition
Error in `.extract_constructor_and_modifiers()`:
! Don't know how to sample_, multiple constructors given

# graph_from_literal() and simple undirected graphs

Code
Expand Down
11 changes: 0 additions & 11 deletions tests/testthat/test-graph.atlas.R

This file was deleted.

29 changes: 0 additions & 29 deletions tests/testthat/test-graph.bipartite.R

This file was deleted.

11 changes: 0 additions & 11 deletions tests/testthat/test-graph.de.bruijn.R

This file was deleted.

10 changes: 0 additions & 10 deletions tests/testthat/test-graph.kautz.R

This file was deleted.

Loading

0 comments on commit bbc888e

Please sign in to comment.