From 1052a92a44b738303636fd8776597d1ea1b84a51 Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Mon, 7 Nov 2016 20:04:19 -0500 Subject: Fix annotations (#366) getMyAnnotations now returns Seq[Annotation] Changed test to check number of annotations is the same --- src/test/scala/firrtlTests/AnnotationTests.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') 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)) } } -- cgit v1.2.3