aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/formal/RemoveVerificationStatementsSpec.scala
diff options
context:
space:
mode:
authorJack Koenig2020-08-15 10:16:28 -0700
committerGitHub2020-08-15 10:16:28 -0700
commitf1c314e6c7e116df33ffc215ec907212037292dc (patch)
treef06060e9fb52f4f5b30bc56db78acb6bd371642d /src/test/scala/firrtlTests/formal/RemoveVerificationStatementsSpec.scala
parent2e5f942d25d7afab79ee1263c5d6833cad9d743d (diff)
parent9adbe1ede59f9aeb25e71fd8318a4e7e46c4cc34 (diff)
Merge pull request #1852 from freechipsproject/format-src-4
Apply Scalafmt Rewriting
Diffstat (limited to 'src/test/scala/firrtlTests/formal/RemoveVerificationStatementsSpec.scala')
-rw-r--r--src/test/scala/firrtlTests/formal/RemoveVerificationStatementsSpec.scala14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/scala/firrtlTests/formal/RemoveVerificationStatementsSpec.scala b/src/test/scala/firrtlTests/formal/RemoveVerificationStatementsSpec.scala
index 10e63ae4..40d810c5 100644
--- a/src/test/scala/firrtlTests/formal/RemoveVerificationStatementsSpec.scala
+++ b/src/test/scala/firrtlTests/formal/RemoveVerificationStatementsSpec.scala
@@ -1,4 +1,3 @@
-
package firrtlTests.formal
import firrtl.{CircuitState, Parser, Transform, UnknownForm}
@@ -7,17 +6,18 @@ import firrtl.testutils.FirrtlFlatSpec
import firrtl.transforms.formal.RemoveVerificationStatements
class RemoveVerificationStatementsSpec extends FirrtlFlatSpec {
- behavior of "RemoveVerificationStatements"
+ behavior.of("RemoveVerificationStatements")
- val transforms = new TransformManager(Forms.HighForm, Forms.MinimalHighForm)
- .flattenedTransformOrder ++ Seq(new RemoveVerificationStatements)
+ val transforms = new TransformManager(Forms.HighForm, Forms.MinimalHighForm).flattenedTransformOrder ++ Seq(
+ new RemoveVerificationStatements
+ )
def run(input: String, antiCheck: Seq[String], debug: Boolean = false): Unit = {
val circuit = Parser.parse(input.split("\n").toIterator)
- val result = transforms.foldLeft(CircuitState(circuit, UnknownForm)) {
- (c: CircuitState, p: Transform) => p.runTransform(c)
+ val result = transforms.foldLeft(CircuitState(circuit, UnknownForm)) { (c: CircuitState, p: Transform) =>
+ p.runTransform(c)
}
- val lines = result.circuit.serialize.split("\n") map normalized
+ val lines = result.circuit.serialize.split("\n").map(normalized)
if (debug) {
println(lines.mkString("\n"))