tests/testthat/test_fileinfo.R

histoFile = system.file("extdata", "histos.xml.gz", package="aidar")

test_that("getFileInfo", {

	info = getFileInfo(histoFile)

	expect_equal( length(info$histogram1d$name), 2 )

	expect_equal( info$histogram1d$name   [[2]], "2" )
	expect_equal( info$histogram1d$title  [[2]], "Example histogram 2 (flat)" )

	expect_equal( info$histogram1d$entries[[1]], "984" )
	
})

Try the aidar package in your browser

Any scripts or data that you put into this service are public.

aidar documentation built on May 1, 2019, 9:22 p.m.