summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/UInt.scala
diff options
context:
space:
mode:
authorducky2015-10-23 13:12:27 -0700
committerPalmer Dabbelt2015-10-23 13:18:16 -0700
commit233875001af47b0c7773872f8bd76f1e53ef9e83 (patch)
tree627d85a99298c431dc638095000c2df096a2eac6 /src/test/scala/chiselTests/UInt.scala
parent6ce580969d1cefcdff18aa8ab6610b1c89c57739 (diff)
Whitespace scalastyle fixes for tests
Diffstat (limited to 'src/test/scala/chiselTests/UInt.scala')
-rw-r--r--src/test/scala/chiselTests/UInt.scala8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/scala/chiselTests/UInt.scala b/src/test/scala/chiselTests/UInt.scala
index 8885c71f..3c5e1ab7 100644
--- a/src/test/scala/chiselTests/UInt.scala
+++ b/src/test/scala/chiselTests/UInt.scala
@@ -1,3 +1,5 @@
+// See LICENSE for license details.
+
package chiselTests
import Chisel._
@@ -8,7 +10,7 @@ import Chisel.testers.BasicTester
class GoodBoolConversion extends Module {
val io = new Bundle {
val u = UInt(1, width = 1).asInput
- val b = Bool(OUTPUT)
+ val b = Bool(OUTPUT)
}
io.b := io.u.toBool
}
@@ -16,7 +18,7 @@ class GoodBoolConversion extends Module {
class BadBoolConversion extends Module {
val io = new Bundle {
val u = UInt(1, width = 5).asInput
- val b = Bool(OUTPUT)
+ val b = Bool(OUTPUT)
}
io.b := io.u.toBool
}
@@ -28,5 +30,5 @@ class UIntSpec extends ChiselPropSpec with Matchers {
property("Bools cannot be created from >1 bit UInts") {
a [Exception] should be thrownBy { elaborate(new BadBoolConversion) }
- }
+ }
}