diff options
| author | ducky | 2015-10-23 13:12:27 -0700 |
|---|---|---|
| committer | Palmer Dabbelt | 2015-10-23 13:18:16 -0700 |
| commit | 233875001af47b0c7773872f8bd76f1e53ef9e83 (patch) | |
| tree | 627d85a99298c431dc638095000c2df096a2eac6 /src/test/scala/chiselTests/ComplexAssign.scala | |
| parent | 6ce580969d1cefcdff18aa8ab6610b1c89c57739 (diff) | |
Whitespace scalastyle fixes for tests
Diffstat (limited to 'src/test/scala/chiselTests/ComplexAssign.scala')
| -rw-r--r-- | src/test/scala/chiselTests/ComplexAssign.scala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/test/scala/chiselTests/ComplexAssign.scala b/src/test/scala/chiselTests/ComplexAssign.scala index 47041ddd..09743e04 100644 --- a/src/test/scala/chiselTests/ComplexAssign.scala +++ b/src/test/scala/chiselTests/ComplexAssign.scala @@ -1,7 +1,10 @@ +// See LICENSE for license details. + package chiselTests import Chisel._ import org.scalatest._ import org.scalatest.prop._ + import Chisel.testers.BasicTester class Complex[T <: Data](val re: T, val im: T) extends Bundle { @@ -37,13 +40,13 @@ class ComplexAssignSpec extends ChiselPropSpec { val re_correct = dut.io.out.re === Mux(dut.io.e, dut.io.in.re, UInt(0)) val im_correct = dut.io.out.im === Mux(dut.io.e, dut.io.in.im, UInt(0)) when(!re_correct || !im_correct) { - io.done := Bool(true); io.error := cnt + io.done := Bool(true); io.error := cnt } .elsewhen(wrap) { io.done := Bool(true) } } - + property("All complex assignments should return the correct result") { forAll(enSequence(4), safeUInts, safeUInts) { (en: List[Boolean], re: Int, im: Int) => - assert(execute{ new ComplexAssignTester(en, re, im) }) + assert(execute{ new ComplexAssignTester(en, re, im) }) } } } |
