summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/chiselTests/Counter.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/chiselTests/Counter.scala b/src/test/scala/chiselTests/Counter.scala
index d5cd7e5d..07a76cdc 100644
--- a/src/test/scala/chiselTests/Counter.scala
+++ b/src/test/scala/chiselTests/Counter.scala
@@ -41,7 +41,7 @@ class CounterSpec extends ChiselPropSpec {
}
property("Counter can be en/disabled") {
- forAll(safeUInts) { (seed: Int) => assertTesterPasses{ new EnableTester(seed) } }
+ forAll(safeUInts) { (seed: Int) => whenever(seed >= 0) { assertTesterPasses{ new EnableTester(seed) } } }
}
property("Counter should wrap") {