diff options
Diffstat (limited to 'src/test/scala/firrtlTests/AnnotationTests.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/AnnotationTests.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/scala/firrtlTests/AnnotationTests.scala b/src/test/scala/firrtlTests/AnnotationTests.scala index 5a86bfe5..77f07781 100644 --- a/src/test/scala/firrtlTests/AnnotationTests.scala +++ b/src/test/scala/firrtlTests/AnnotationTests.scala @@ -140,5 +140,10 @@ class AnnotationTests extends AnnotationSpec with Matchers { result.annotations.get.annotations.head should matchPattern { case DeletedAnnotation(x, anno) => } + val exception = (intercept[FIRRTLException] { + result.getEmittedCircuit + }) + val deleted = result.deletedAnnotations + exception.str should be (s"No EmittedCircuit found! Did you delete any annotations?\n$deleted") } } |
