diff options
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) }) } |
