aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/options/ShellSpec.scala
diff options
context:
space:
mode:
authorchick2020-08-14 19:47:53 -0700
committerJack Koenig2020-08-14 19:47:53 -0700
commit6fc742bfaf5ee508a34189400a1a7dbffe3f1cac (patch)
tree2ed103ee80b0fba613c88a66af854ae9952610ce /src/test/scala/firrtlTests/options/ShellSpec.scala
parentb516293f703c4de86397862fee1897aded2ae140 (diff)
All of src/ formatted with scalafmt
Diffstat (limited to 'src/test/scala/firrtlTests/options/ShellSpec.scala')
-rw-r--r--src/test/scala/firrtlTests/options/ShellSpec.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/scala/firrtlTests/options/ShellSpec.scala b/src/test/scala/firrtlTests/options/ShellSpec.scala
index af6b2669..178b1128 100644
--- a/src/test/scala/firrtlTests/options/ShellSpec.scala
+++ b/src/test/scala/firrtlTests/options/ShellSpec.scala
@@ -2,7 +2,6 @@
package firrtlTests.options
-
import firrtl.annotations.NoTargetAnnotation
import firrtl.options.Shell
import org.scalatest.flatspec.AnyFlatSpec
@@ -17,25 +16,26 @@ class ShellSpec extends AnyFlatSpec with Matchers {
case object E extends NoTargetAnnotation
trait AlphabeticalCli { this: Shell =>
- parser.opt[Unit]('c', "c-option").unbounded().action( (x, c) => C +: c )
- parser.opt[Unit]('d', "d-option").unbounded().action( (x, c) => D +: c )
- parser.opt[Unit]('e', "e-option").unbounded().action( (x, c) => E +: c ) }
+ parser.opt[Unit]('c', "c-option").unbounded().action((x, c) => C +: c)
+ parser.opt[Unit]('d', "d-option").unbounded().action((x, c) => D +: c)
+ parser.opt[Unit]('e', "e-option").unbounded().action((x, c) => E +: c)
+ }
- behavior of "Shell"
+ behavior.of("Shell")
it should "detect all registered libraries and transforms" in {
val shell = new Shell("foo")
info("Found FooTransform")
- shell.registeredTransforms.map(_.getClass.getName) should contain ("firrtlTests.options.FooTransform")
+ shell.registeredTransforms.map(_.getClass.getName) should contain("firrtlTests.options.FooTransform")
info("Found BarLibrary")
- shell.registeredLibraries.map(_.getClass.getName) should contain ("firrtlTests.options.BarLibrary")
+ shell.registeredLibraries.map(_.getClass.getName) should contain("firrtlTests.options.BarLibrary")
}
it should "correctly order annotations and options" in {
val shell = new Shell("foo") with AlphabeticalCli
- shell.parse(Array("-c", "-d", "-e"), Seq(A, B)).toSeq should be (Seq(A, B, C, D, E))
+ shell.parse(Array("-c", "-d", "-e"), Seq(A, B)).toSeq should be(Seq(A, B, C, D, E))
}
}