File: context.R

package info (click to toggle)
r-cran-testthat 3.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,048 kB
  • sloc: cpp: 9,269; sh: 14; ansic: 14; makefile: 5
file content (21 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
context("First context.")

test_that("Logical equivalence", {
  x <- TRUE
  expect_equal(x, TRUE)
})

test_that("Numerical equivalence", {
  x <- 1
  expect_equal(x, 1)
})

context("Second context.")

test_that("A passing test", {
  expect_equal(TRUE, TRUE)
})

test_that("A failing test", {
  expect_equal(TRUE, FALSE)
})