diff options
Diffstat (limited to 'src/test/scala/chiselTests/SIntOps.scala')
| -rw-r--r-- | src/test/scala/chiselTests/SIntOps.scala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/test/scala/chiselTests/SIntOps.scala b/src/test/scala/chiselTests/SIntOps.scala index 9309c915..5baf52b8 100644 --- a/src/test/scala/chiselTests/SIntOps.scala +++ b/src/test/scala/chiselTests/SIntOps.scala @@ -3,6 +3,7 @@ package chiselTests import chisel3._ +import chisel3.stage.ChiselStage import chisel3.testers.BasicTester class SIntOps extends Module { @@ -97,14 +98,16 @@ class SIntLitExtractTester extends BasicTester { stop() } -class SIntOpsSpec extends ChiselPropSpec { +class SIntOpsSpec extends ChiselPropSpec with Utils { property("SIntOps should elaborate") { - elaborate { new SIntOps } + ChiselStage.elaborate { new SIntOps } } property("Negative shift amounts are invalid") { - a [ChiselException] should be thrownBy { elaborate(new NegativeShift(SInt())) } + a [ChiselException] should be thrownBy extractCause[ChiselException] { + ChiselStage.elaborate(new NegativeShift(SInt())) + } } ignore("SIntOpsTester should return the correct result") { } |
