summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/Counter.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/Counter.scala
parentdd36f97a82746cec0b25b94651581fe799e24579 (diff)
Apply scalafmt
Command: sbt scalafmtAll
Diffstat (limited to 'src/test/scala/chiselTests/Counter.scala')
-rw-r--r--src/test/scala/chiselTests/Counter.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/scala/chiselTests/Counter.scala b/src/test/scala/chiselTests/Counter.scala
index 121d481a..0e2a339a 100644
--- a/src/test/scala/chiselTests/Counter.scala
+++ b/src/test/scala/chiselTests/Counter.scala
@@ -34,7 +34,7 @@ class ResetTester(n: Int) extends BasicTester {
val wasReset = RegNext(triggerReset)
val (value, _) = Counter(0 until 8, reset = triggerReset)
- triggerReset := value === (n-1).U
+ triggerReset := value === (n - 1).U
when(wasReset) {
assert(value === 0.U)
@@ -71,20 +71,20 @@ class CounterSpec extends ChiselPropSpec {
}
property("Counter can be en/disabled") {
- forAll(safeUInts) { (seed: Int) => whenever(seed >= 0) { assertTesterPasses{ new EnableTester(seed) } } }
+ forAll(safeUInts) { (seed: Int) => whenever(seed >= 0) { assertTesterPasses { new EnableTester(seed) } } }
}
property("Counter can be reset") {
- forAll(smallPosInts) { (seed: Int) => assertTesterPasses{ new ResetTester(seed) } }
+ forAll(smallPosInts) { (seed: Int) => assertTesterPasses { new ResetTester(seed) } }
}
property("Counter should wrap") {
- forAll(smallPosInts) { (max: Int) => assertTesterPasses{ new WrapTester(max) } }
+ forAll(smallPosInts) { (max: Int) => assertTesterPasses { new WrapTester(max) } }
}
property("Counter should handle a range") {
forAll(posRange) { (r: Range) =>
- assertTesterPasses{ new RangeTester(r) }
+ assertTesterPasses { new RangeTester(r) }
}
}
}