File: programming.R

package info (click to toggle)
r-cran-tinytest 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,072 kB
  • sloc: sh: 14; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 234 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# some test to check that we can program over tests.

# this should yield 10 testresults
for ( i in 1:10 ){
  expect_equal(1+1,2)
}

# this should yield a single testresult
if ( ignore(expect_equal)(1+1,2) ){
  expect_true(TRUE)
}