diff options
| author | Andrew Waterman | 2017-12-08 17:06:19 -0800 |
|---|---|---|
| committer | Jack Koenig | 2017-12-08 17:06:19 -0800 |
| commit | 66d687d9c7af34e9d7a061feba309ec7a6dbd261 (patch) | |
| tree | 7c7ad57b6c0a0686751626a546586fbdc78373ae /src/test/scala/chiselTests/SIntOps.scala | |
| parent | 81fa4f2418faf70b0f2dbf758cad93e923ee5607 (diff) | |
Reject negative shift amounts; add tests (#730)
Closes #729
Diffstat (limited to 'src/test/scala/chiselTests/SIntOps.scala')
| -rw-r--r-- | src/test/scala/chiselTests/SIntOps.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/SIntOps.scala b/src/test/scala/chiselTests/SIntOps.scala index 900eb074..a9b75446 100644 --- a/src/test/scala/chiselTests/SIntOps.scala +++ b/src/test/scala/chiselTests/SIntOps.scala @@ -89,5 +89,9 @@ class SIntOpsSpec extends ChiselPropSpec { elaborate { new SIntOps } } + property("Negative shift amounts are invalid") { + a [ChiselException] should be thrownBy { elaborate(new NegativeShift(SInt())) } + } + ignore("SIntOpsTester should return the correct result") { } } |
