Nothing
#******************************************
#
# (C) Copyright IBM Corp. 2014
#
# Author: Bradley J Eck
#
#******************************************
# File: test_expandedLinkTable-s3.r
# By : bradley.eck@ie.ibm.com
context("expandedlinkTable s3 object")
test_that("expanedLinkTable works for Net1",
{
Net1 <- suppressWarnings(read.inp( "Net1.inp"))
# pipes
ept <- expandedLinkTable( Net1$Pipes, Net1$Coordinates)
y2111 <- subset(ept, ID == '111', select = 'y2')
expect_that(as.numeric(y2111), equals(40))
expect_true( is.expandedLinkTable( ept) )
# pumps
ept <- expandedLinkTable( Net1$Pumps, Net1$Coordinates)
expect_that(ept$x1[1], equals(10))
expect_true( is.expandedLinkTable( ept) )
# valves
evt <- expandedLinkTable( Net1$Valvesves, Net1$Coordinates)
expect_that(evt, equals(NA))
}
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.