diff options
| author | Henry Cook | 2015-08-13 15:47:02 -0700 |
|---|---|---|
| committer | Henry Cook | 2015-08-13 15:51:53 -0700 |
| commit | ad96b03f84d0182f5e74f11117331d69752ea0a0 (patch) | |
| tree | 0d4ed1e56c054fe0ac7d2ef8739fb28c18be2b76 /src/test/scala/chiselTests/BitwiseOps.scala | |
| parent | ed69bdea87f7f60cc6b3bac7b6cdd7b6bc787f1d (diff) | |
testing improvements
Diffstat (limited to 'src/test/scala/chiselTests/BitwiseOps.scala')
| -rw-r--r-- | src/test/scala/chiselTests/BitwiseOps.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/chiselTests/BitwiseOps.scala b/src/test/scala/chiselTests/BitwiseOps.scala index 7cd695e6..c4fe7424 100644 --- a/src/test/scala/chiselTests/BitwiseOps.scala +++ b/src/test/scala/chiselTests/BitwiseOps.scala @@ -50,7 +50,7 @@ class BitwiseOps(w: Int) extends Module { io.xor := io.a ^ io.b } -class BitwiseOpsSpec extends ChiselSpec { +class BitwiseOpsSpec extends ChiselPropSpec { class BitwiseOpsTester(w: Int, a: Int, b: Int) extends BasicTester { val mask = (1 << w)-1; @@ -64,7 +64,7 @@ class BitwiseOpsSpec extends ChiselSpec { when(dut.io.xor != UInt(mask & (a ^ b))) { io.error := UInt(4) } } - "BitwiseOps" should "return the correct result" in { + property("All bit-wise ops should return the correct result") { forAll(safeUInts, safeUInts) { (a: Int, b: Int) => assert(execute{ new BitwiseOpsTester(32, a, b) }) } |
