diff options
| author | ducky | 2015-12-10 16:22:59 -0800 |
|---|---|---|
| committer | ducky | 2016-01-30 14:45:55 -0800 |
| commit | 898efea92e9e13775b39dd7fb92cac420334b9c9 (patch) | |
| tree | bb7cdb52fbfe90c44de5846f5175b27d894e3b27 /src/test/scala/chiselTests/Counter.scala | |
| parent | 8d8c407c0c1693160d6f0972165e376e09aa99c9 (diff) | |
Add BlackBox support and test, refactor execute => assertTesterPasses
Diffstat (limited to 'src/test/scala/chiselTests/Counter.scala')
| -rw-r--r-- | src/test/scala/chiselTests/Counter.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/scala/chiselTests/Counter.scala b/src/test/scala/chiselTests/Counter.scala index aa21423f..d5cd7e5d 100644 --- a/src/test/scala/chiselTests/Counter.scala +++ b/src/test/scala/chiselTests/Counter.scala @@ -37,14 +37,14 @@ class WrapTester(max: Int) extends BasicTester { class CounterSpec extends ChiselPropSpec { property("Counter should count up") { - forAll(smallPosInts) { (max: Int) => assert(execute{ new CountTester(max) }) } + forAll(smallPosInts) { (max: Int) => assertTesterPasses{ new CountTester(max) } } } property("Counter can be en/disabled") { - forAll(safeUInts) { (seed: Int) => assert(execute{ new EnableTester(seed) }) } + forAll(safeUInts) { (seed: Int) => assertTesterPasses{ new EnableTester(seed) } } } property("Counter should wrap") { - forAll(smallPosInts) { (max: Int) => assert(execute{ new WrapTester(max) }) } + forAll(smallPosInts) { (max: Int) => assertTesterPasses{ new WrapTester(max) } } } } |
