aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAdam Izraelevitz2016-11-07 20:04:19 -0500
committerGitHub2016-11-07 20:04:19 -0500
commit1052a92a44b738303636fd8776597d1ea1b84a51 (patch)
tree96eca9a00bf3031d74bb3fafd751b712114b0aee /src/test
parent907a2b2bff7023316a29e129aa9cbc04ba794c06 (diff)
Fix annotations (#366)
getMyAnnotations now returns Seq[Annotation] Changed test to check number of annotations is the same
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/firrtlTests/AnnotationTests.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/firrtlTests/AnnotationTests.scala b/src/test/scala/firrtlTests/AnnotationTests.scala
index 6c1adac3..a0a935a9 100644
--- a/src/test/scala/firrtlTests/AnnotationTests.scala
+++ b/src/test/scala/firrtlTests/AnnotationTests.scala
@@ -53,7 +53,7 @@ trait AnnotationSpec extends LowTransformSpec {
}
def execute(writer: Writer, annotations: AnnotationMap, input: String, check: Annotation) = {
val cr = compile(CircuitState(parse(input), ChirrtlForm, Some(annotations)), writer)
- (cr.annotations.get.annotations.head) should be (check)
+ (cr.annotations.get.annotations) should be (Seq(check))
}
}