Skip to content
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
Closed

bare expectations in a test file cause an error #31

HarlanH opened this issue Jan 21, 2012 · 2 comments

Comments

@HarlanH
Copy link

@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
Copy link
Member

@hadley 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
Copy link
Member

@hadley 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants