inst/unit/runit.repeat.R

test.repeat <- function(){
	checkEquals( "--" %x=% 10, paste(rep("-", 20), collapse = "") , msg = "", checkNames = FALSE )
  checkEquals( "-+" %x=% 10, paste(rep("-+", 10), collapse = ""), checkNames = FALSE, msg = "" )
	
	checkEquals( nchar("--" %x=|% 50), 50 , msg = "", checkNames = FALSE )
	checkEquals( nchar("|-<+>-|" %x=|% 50), 50 , msg = "", checkNames = FALSE )
	checkEquals( "|-<+>-|" %x=|% 50, substring(paste(rep("|-<+>-|", 10), collapse = "" ), 0, 50) , msg = "", checkNames = FALSE )
	
	
}

test.repeat.zero <- function(){
	
}

Try the operators package in your browser

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

operators documentation built on May 2, 2019, 6:48 p.m.