From 3608401852baa18b4deaa22669529830b751901a Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Thu, 16 Mar 2017 13:13:17 -0700 Subject: Give better error message if missing emitedcircuit --- src/test/scala/firrtlTests/AnnotationTests.scala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/test') 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") } } -- cgit v1.2.3