aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAdam Izraelevitz2017-03-16 13:13:17 -0700
committerAdam Izraelevitz2017-03-17 12:32:34 -0700
commit3608401852baa18b4deaa22669529830b751901a (patch)
tree342b401a754f4a7b7c6db456a95287c22ce15093 /src/test
parentf795cfe66be3499d52b037c3a252a54cde22d4c5 (diff)
Give better error message if missing emitedcircuit
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/firrtlTests/AnnotationTests.scala5
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")
}
}