Skip to content

Commit

Permalink
Added test for .igraphAvailableLayouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Dec 6, 2018
1 parent d4d8a58 commit a33c396
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/testthat/test-AbstractGraphReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ futile.logger::flog.threshold(0)
## Structure Available ##

test_that('AbstractGraphReporter structure is as expected', {

expect_named(
object = AbstractGraphReporter$public_methods
, expected = c("clone")
, info = "Available public methods for AbstractGraphReporter not as expected."
, ignore.order = TRUE
, ignore.case = FALSE
)

expect_named(
object = AbstractGraphReporter$public_fields
, expected = NULL
Expand All @@ -37,8 +37,15 @@ test_that('AbstractGraphReporter structure is as expected', {

### USAGE OF PUBLIC AND PRIVATE METHODS AND FIELDS TO BE TESTED BY CHILD OBJECTS

test_that(".igraphAvailableLayouts returns layouts correctly", {
expect_true({
length(pkgnet:::.igraphAvailableLayouts()) > 0
})
})


##### TEST TEAR DOWN #####

futile.logger::flog.threshold(origLogThreshold)
rm(list = ls())
closeAllConnections()
closeAllConnections()

0 comments on commit a33c396

Please sign in to comment.