From a33c396daaf3d874f27b399a7a84cc72eddab8b8 Mon Sep 17 00:00:00 2001 From: Jay Qi Date: Wed, 5 Dec 2018 23:35:15 -0600 Subject: [PATCH] Added test for .igraphAvailableLayouts --- tests/testthat/test-AbstractGraphReporter.R | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/testthat/test-AbstractGraphReporter.R b/tests/testthat/test-AbstractGraphReporter.R index 620d7780..a17ddd8e 100644 --- a/tests/testthat/test-AbstractGraphReporter.R +++ b/tests/testthat/test-AbstractGraphReporter.R @@ -17,7 +17,7 @@ futile.logger::flog.threshold(0) ## Structure Available ## test_that('AbstractGraphReporter structure is as expected', { - + expect_named( object = AbstractGraphReporter$public_methods , expected = c("clone") @@ -25,7 +25,7 @@ test_that('AbstractGraphReporter structure is as expected', { , ignore.order = TRUE , ignore.case = FALSE ) - + expect_named( object = AbstractGraphReporter$public_fields , expected = NULL @@ -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() \ No newline at end of file +closeAllConnections()