summaryrefslogtreecommitdiff
path: root/src/test/scala
diff options
context:
space:
mode:
authorSchuyler Eldridge2019-01-17 17:45:56 -0500
committerGitHub2019-01-17 17:45:56 -0500
commit6f4f5dd24adf815f1db81ceb7086eaa399784e6f (patch)
tree6116e128b6258ed5eee7d042d0fabbd14dcb3df7 /src/test/scala
parent1e4fef2e933e01b692c57af1fd64b271829ab283 (diff)
parent685790b2c6c7ff8ddfd34f2f84572a985d3416cc (diff)
Merge branch 'master' into improve-andr
Diffstat (limited to 'src/test/scala')
-rw-r--r--src/test/scala/chiselTests/NamingAnnotationTest.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/NamingAnnotationTest.scala b/src/test/scala/chiselTests/NamingAnnotationTest.scala
index 07962aaf..ec0874fc 100644
--- a/src/test/scala/chiselTests/NamingAnnotationTest.scala
+++ b/src/test/scala/chiselTests/NamingAnnotationTest.scala
@@ -67,6 +67,11 @@ class NamedModule extends NamedModuleTester {
val myA = expectName(1.U + myNested, "test_myA")
val myB = expectName(myA +& 2.U, "test_myB")
val myC = expectName(myB +& 3.U, "test_myC")
+
+ val myD = Seq(myC +& 1.U, myC +& 2.U)
+ for ((d, i) <- myD.zipWithIndex)
+ expectName(d, s"test_myD_$i")
+
myC +& 4.U // named at enclosing scope
}