diff options
| author | Kevin Laeufer | 2020-07-28 10:10:43 -0700 |
|---|---|---|
| committer | Kevin Laeufer | 2020-07-29 15:26:30 -0700 |
| commit | 093cb4993f37fccb55396abeb1a61a528f0eaa2a (patch) | |
| tree | 26488bdf8fd33e0b8693ce99c8cd119227300b76 /src/test/scala/firrtlTests/options | |
| parent | 8b66b53591703d6cded44419726b18e80d0e6bd6 (diff) | |
[2.13] toSeq, Unit -> (), and postfix fixes
Diffstat (limited to 'src/test/scala/firrtlTests/options')
| -rw-r--r-- | src/test/scala/firrtlTests/options/OptionParserSpec.scala | 4 | ||||
| -rw-r--r-- | src/test/scala/firrtlTests/options/PhaseManagerSpec.scala | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/scala/firrtlTests/options/OptionParserSpec.scala b/src/test/scala/firrtlTests/options/OptionParserSpec.scala index b8efbdb6..e93c9b2c 100644 --- a/src/test/scala/firrtlTests/options/OptionParserSpec.scala +++ b/src/test/scala/firrtlTests/options/OptionParserSpec.scala @@ -40,7 +40,7 @@ class OptionParserSpec extends AnyFlatSpec with Matchers with firrtl.testutils.U catchStatus { parser.terminate(Left("some message")) } should be (Left(1)) info("exit status of 0 for success") - catchStatus { parser.terminate(Right(Unit)) } should be (Left(0)) + catchStatus { parser.terminate(Right(())) } should be (Left(0)) } it should "print to stderr on an invalid option" in new WithIntParser { @@ -56,7 +56,7 @@ class OptionParserSpec extends AnyFlatSpec with Matchers with firrtl.testutils.U catchStatus { parser.terminate(Left("some message")) } should be (Right(())) info("no exit for success") - catchStatus { parser.terminate(Right(Unit)) } should be (Right(())) + catchStatus { parser.terminate(Right(())) } should be (Right(())) } behavior of "An OptionParser with DuplicateHandling mixed in" diff --git a/src/test/scala/firrtlTests/options/PhaseManagerSpec.scala b/src/test/scala/firrtlTests/options/PhaseManagerSpec.scala index d8422cb9..108f3730 100644 --- a/src/test/scala/firrtlTests/options/PhaseManagerSpec.scala +++ b/src/test/scala/firrtlTests/options/PhaseManagerSpec.scala @@ -392,7 +392,7 @@ class PhaseManagerSpec extends AnyFlatSpec with Matchers { /** Convert a Graphviz file to PNG using */ def maybeToPng(f: File): Unit = try { - s"dot -Tpng -O ${f}" ! + s"dot -Tpng -O ${f}".! } catch { case _: java.io.IOException => } |
