summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/util/CatSpec.scala
diff options
context:
space:
mode:
authorJack Koenig2022-01-10 10:39:52 -0800
committerJack Koenig2022-01-10 15:53:55 -0800
commit3131c0daad41dea78bede4517669e376c41a325a (patch)
tree55baed78a6a01f80ff3952a08233ca553a19964f /src/test/scala/chiselTests/util/CatSpec.scala
parentdd36f97a82746cec0b25b94651581fe799e24579 (diff)
Apply scalafmt
Command: sbt scalafmtAll
Diffstat (limited to 'src/test/scala/chiselTests/util/CatSpec.scala')
-rw-r--r--src/test/scala/chiselTests/util/CatSpec.scala15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/test/scala/chiselTests/util/CatSpec.scala b/src/test/scala/chiselTests/util/CatSpec.scala
index 79d2c027..a75c4ec0 100644
--- a/src/test/scala/chiselTests/util/CatSpec.scala
+++ b/src/test/scala/chiselTests/util/CatSpec.scala
@@ -12,7 +12,7 @@ import chiselTests.ChiselFlatSpec
object CatSpec {
class JackIsATypeSystemGod extends Module {
- val in = IO(Input (Vec(0, UInt(8.W))))
+ val in = IO(Input(Vec(0, UInt(8.W))))
val out = IO(Output(UInt(8.W)))
out := Cat(in)
@@ -24,7 +24,7 @@ class CatSpec extends ChiselFlatSpec {
import CatSpec._
- behavior of "util.Cat"
+ behavior.of("util.Cat")
it should "not fail to elaborate a zero-element Vec" in {
@@ -41,7 +41,7 @@ class CatSpec extends ChiselFlatSpec {
}
val chirrtl = ChiselStage.emitChirrtl(new MyModule)
for (name <- Seq("a", "b", "c", "d")) {
- chirrtl should include (s"input $name : UInt<8>")
+ chirrtl should include(s"input $name : UInt<8>")
}
}
@@ -54,11 +54,10 @@ class CatSpec extends ChiselFlatSpec {
out := noPrefix(Cat(in))
}
val chirrtl = ChiselStage.emitChirrtl(new MyModule)
- chirrtl should include ("node lo_lo = cat(in[6], in[7])")
- chirrtl should include ("node lo_hi = cat(in[4], in[5])")
- chirrtl should include ("node hi_lo = cat(in[2], in[3])")
- chirrtl should include ("node hi_hi = cat(in[0], in[1])")
+ chirrtl should include("node lo_lo = cat(in[6], in[7])")
+ chirrtl should include("node lo_hi = cat(in[4], in[5])")
+ chirrtl should include("node hi_lo = cat(in[2], in[3])")
+ chirrtl should include("node hi_hi = cat(in[0], in[1])")
}
-
}