diff options
| author | Jack Koenig | 2017-06-28 17:00:13 -0700 |
|---|---|---|
| committer | Jack Koenig | 2017-06-28 17:00:13 -0700 |
| commit | dbb4de2a4e6c2122e7c0def7d1c4ff38a79e1558 (patch) | |
| tree | 694faae388d2353da211dd0e5df06a286536a73a /src/test/scala/firrtlTests/FirrtlSpec.scala | |
| parent | 8eb69dd91e58915f8dad5e42da0a3fe686c628d8 (diff) | |
[Testing] Have SimpleTransformSpec mix in FirrtlMatchers
Gives all transform specs access to useful utilities (like dontTouch).
Deletes some duplicate code. Parsing mode UseInfo is fine for
everything, only matters if the test actually uses info.
Diffstat (limited to 'src/test/scala/firrtlTests/FirrtlSpec.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/FirrtlSpec.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/firrtlTests/FirrtlSpec.scala b/src/test/scala/firrtlTests/FirrtlSpec.scala index a45af8c7..07f83142 100644 --- a/src/test/scala/firrtlTests/FirrtlSpec.scala +++ b/src/test/scala/firrtlTests/FirrtlSpec.scala @@ -11,7 +11,7 @@ import org.scalatest.prop._ import scala.io.Source import firrtl._ -import firrtl.Parser.IgnoreInfo +import firrtl.Parser.UseInfo import firrtl.annotations._ import firrtl.transforms.{DontTouchAnnotation, NoDedupAnnotation} import firrtl.util.BackendCompilationUtilities @@ -100,7 +100,7 @@ trait FirrtlMatchers extends Matchers { require(!s.contains("\n")) s.replaceAll("\\s+", " ").trim } - def parse(str: String) = Parser.parse(str.split("\n").toIterator, IgnoreInfo) + def parse(str: String) = Parser.parse(str.split("\n").toIterator, UseInfo) /** Helper for executing tests * compiler will be run on input then emitted result will each be split into * lines and normalized. |
