diff options
| author | chick | 2019-08-01 17:04:45 -0700 |
|---|---|---|
| committer | chick | 2019-08-01 17:04:45 -0700 |
| commit | 2bf399c240938ba51069348f986fa5d65135a808 (patch) | |
| tree | 9c14023a5b242c391ece9063d3bcae7e012deab7 /src/test | |
| parent | 54e67889f10b39323fb729808b8cd22b4c832910 (diff) | |
Followup to PR #1142
- use scala.io.Source instead of io.Source
- .toList cleaner way to force stream to be read.
- clear old commented out code in ProtoBufSpec
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/scala/firrtlTests/ProtoBufSpec.scala | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/test/scala/firrtlTests/ProtoBufSpec.scala b/src/test/scala/firrtlTests/ProtoBufSpec.scala index 3d46e291..526a194c 100644 --- a/src/test/scala/firrtlTests/ProtoBufSpec.scala +++ b/src/test/scala/firrtlTests/ProtoBufSpec.scala @@ -2,8 +2,6 @@ package firrtlTests -import java.io.{ByteArrayInputStream, ByteArrayOutputStream} - import firrtl.FirrtlProtos.Firrtl import firrtl._ import firrtl.ir._ @@ -30,10 +28,6 @@ class ProtoBufSpec extends FirrtlFlatSpec { for (FirrtlResourceTest(name, dir) <- firrtlResourceTests) { s"$name" should "work with Protobuf serialization and deserialization" in { -// val stream = getClass.getResourceAsStream(s"$dir/$name.fir") -// val circuit = parse(scala.io.Source.fromInputStream(stream).getLines.mkString("\n")) -// stream.close() - val circuit = parse(FileUtils.getTextResource(s"$dir/$name.fir")) // Test ToProto and FromProto |
