aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/firrtlTests/ParserSpec.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/firrtlTests/ParserSpec.scala b/src/test/scala/firrtlTests/ParserSpec.scala
index b030be8e..66e214a1 100644
--- a/src/test/scala/firrtlTests/ParserSpec.scala
+++ b/src/test/scala/firrtlTests/ParserSpec.scala
@@ -57,8 +57,8 @@ class ParserSpec extends FirrtlFlatSpec {
firrtl.Parser.parse((prelude ++ fieldsToSeq(fields) :+ s" ${k} => ${v}"))
Seq("data-type", "depth", "read-latency", "write-latency") foreach { field =>
- evaluating { parseWithoutField(field) } should produce [ParameterNotSpecifiedException]
- evaluating { parseWithDuplicate(field, fields(field)) } should produce [ParameterRedefinedException]
+ an [ParameterNotSpecifiedException] should be thrownBy { parseWithoutField(field) }
+ an [ParameterRedefinedException] should be thrownBy { parseWithDuplicate(field, fields(field)) }
}
}