aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorJim Lawson2017-05-27 20:34:39 -0700
committerJack Koenig2017-05-27 20:34:39 -0700
commit8c9c9e2c341c87607d44026b8fc5457409c707b3 (patch)
tree9fa71fca8dc75524b2565f06c07386894f2583b5 /src/test
parent99db604e59e8f052d7628f104eecb2641c6ab9b2 (diff)
Prep for Scala 2.12 (#557)
* Update dependencies and JavaConverters for Scala 2.12 * Bump Scala (and library) version(s). * replace "error" with "Utils.error"; bump Scala version to 2.11.11
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)) }
}
}