File: test_addOne.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 (10 lines) | stat: -rw-r--r-- 128 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
# contents of test_addOne.R

addOne <- function(x) x + 2

expect_true(addOne(0) > 0)

hihi <- 1
expect_equal(addOne(hihi), 2)