tests/testthat/test_simulators.R

library(chords)
context("testing simulator")

test_that("simulator", {
  expect_is(makeSparseMatrix(2, 2e3, 1)!=0, 'Matrix')
  expect_is(makeWeightMatrix(c(weak=10, strong=2), 2e3)!=0, 'Matrix')
})

Try the chords package in your browser

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

chords documentation built on May 2, 2019, 12:37 p.m.