Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Nov 8, 2016
1 parent 3fbdc1a commit 119b179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testit/test-assert.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
library(testit)

assert('assert works', 1==1)
assert('assert works', 1 == 1)

# Okay, that is kind of cheating
assert(
'assert() should signal an error if a condition does not hold',
has_error(assert('this should produce an error', 1==2))
has_error(assert('this should produce an error', 1 == 2))
)

# a meaningless test in terms of R (failure is irrelevant to Frequentist or Bayesian)
Expand Down

0 comments on commit 119b179

Please sign in to comment.