From 233875001af47b0c7773872f8bd76f1e53ef9e83 Mon Sep 17 00:00:00 2001 From: ducky Date: Fri, 23 Oct 2015 13:12:27 -0700 Subject: Whitespace scalastyle fixes for tests --- src/test/scala/chiselTests/Vec.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/test/scala/chiselTests/Vec.scala') diff --git a/src/test/scala/chiselTests/Vec.scala b/src/test/scala/chiselTests/Vec.scala index 145fd8f6..ea670f37 100644 --- a/src/test/scala/chiselTests/Vec.scala +++ b/src/test/scala/chiselTests/Vec.scala @@ -1,3 +1,5 @@ +// See LICENSE for license details. + package chiselTests import Chisel._ @@ -10,7 +12,7 @@ class VecSpec extends ChiselPropSpec { class ValueTester(w: Int, values: List[Int]) extends BasicTester { io.done := Bool(true) val v = Vec(values.map(UInt(_, width = w))) // TODO: does this need a Wire? Why no error? - io.error := v.zip(values).map { case(a,b) => + io.error := v.zip(values).map { case(a,b) => a != UInt(b) }.foldLeft(UInt(0))(_##_) } -- cgit v1.2.3