New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bare expectations in a test file cause an error #31

Closed
HarlanH opened this Issue Jan 21, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@HarlanH

HarlanH commented Jan 21, 2012

> 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.)

@hadley

This comment has been minimized.

Member

hadley commented Feb 28, 2012

Do you still have problems with the current dev version? It's working on for me (and there's actually a bare test in the automated tests). Not sure if I've fixed it and don't remember, or I'm not recreating it.

@hadley

This comment has been minimized.

Member

hadley commented Feb 28, 2012

No, I see the problem now - it's only if there's a failing test

@hadley hadley closed this in 585f27d Feb 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment