From 8c9c9e2c341c87607d44026b8fc5457409c707b3 Mon Sep 17 00:00:00 2001 From: Jim Lawson Date: Sat, 27 May 2017 20:34:39 -0700 Subject: 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 --- src/test/scala/firrtlTests/ParserSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test') 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)) } } } -- cgit v1.2.3