tests/chainTest.R

test01 <- function() {
  actual <- as.list(chain(a=1, b=2, c=rep(3.14159, 100)))
  expected <- c(list(1, 2), as.list(rep(3.14159, 100)))
  checkEquals(actual, expected)
}

test02 <- function() {
  actual <- as.list(chain())
  expected <- list()
  checkEquals(actual, expected)
}

Try the itertools package in your browser

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

itertools documentation built on May 2, 2019, 6:16 p.m.