diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/scala/firrtlTests/AnnotationTests.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/firrtlTests/AnnotationTests.scala b/src/test/scala/firrtlTests/AnnotationTests.scala index 7e1a35dc..8acada93 100644 --- a/src/test/scala/firrtlTests/AnnotationTests.scala +++ b/src/test/scala/firrtlTests/AnnotationTests.scala @@ -59,8 +59,8 @@ class AnnotationTests extends AnnotationSpec with Matchers { } "Annotations" should "be readable from file" in { - val annotationFile = new File("src/test/resources/annotations/SampleAnnotations.anno") - val annotationsYaml = io.Source.fromFile(annotationFile).getLines().mkString("\n").parseYaml + val annotationStream = getClass.getResourceAsStream("/annotations/SampleAnnotations.anno") + val annotationsYaml = scala.io.Source.fromInputStream(annotationStream).getLines().mkString("\n").parseYaml val annotationArray = annotationsYaml.convertTo[Array[Annotation]] annotationArray.length should be (9) annotationArray(0).targetString should be ("ModC") |
