diff options
| author | ducky | 2016-01-21 12:04:24 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2016-05-04 02:11:09 -0700 |
| commit | 623a301df1f5a1954f8e4a64ef97c99c3900da28 (patch) | |
| tree | bc9c24679d590f4f2c5d291f9449de7eacd16cc3 /src/test/scala/chiselTests/ChiselSpec.scala | |
| parent | cd951e193ed6a52c5146583a826e3cae5374d07b (diff) | |
Multiple assign tester
Closes #90
Diffstat (limited to 'src/test/scala/chiselTests/ChiselSpec.scala')
| -rw-r--r-- | src/test/scala/chiselTests/ChiselSpec.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/ChiselSpec.scala b/src/test/scala/chiselTests/ChiselSpec.scala index 8cd6dd0c..da68b0cb 100644 --- a/src/test/scala/chiselTests/ChiselSpec.scala +++ b/src/test/scala/chiselTests/ChiselSpec.scala @@ -17,6 +17,9 @@ trait ChiselRunners extends Assertions { def assertTesterPasses(t: => BasicTester, additionalVResources: Seq[String] = Seq()): Unit = { assert(runTester(t, additionalVResources)) } + def assertTesterFails(t: => BasicTester, additionalVResources: Seq[String] = Seq()): Unit = { + assert(!runTester(t, additionalVResources)) + } def elaborate(t: => Module): Unit = Driver.elaborate(() => t) } |
