hadley/test_that — Issue #31: bare expectations in a test file cause an error
Author: HarlanH
Created: 2012-01-21 15:33:27+00:00
State: open

> library(testthat)
> context('Simplest test')
> expect_equal(1,2)
Error: 1 not equal to 2
Mean relative difference: 0.5
> test_file('tests/test_01_df.R')
Simplest test : 1
Error: Input to str_c should be atomic vectors

(where the contents of that test file are the three lines pasted above.)