From 79f92a48026ab194eef01362c62accf027e51453 Mon Sep 17 00:00:00 2001 From: Chris Stewart Date: Tue, 13 Mar 2018 10:57:42 -0500 Subject: [PATCH] Uncommenting tx_invalid.json test cases --- .../core/protocol/transaction/TransactionTest.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/scala/org/bitcoins/core/protocol/transaction/TransactionTest.scala b/src/test/scala/org/bitcoins/core/protocol/transaction/TransactionTest.scala index 8467d52a9e..0cb8149941 100644 --- a/src/test/scala/org/bitcoins/core/protocol/transaction/TransactionTest.scala +++ b/src/test/scala/org/bitcoins/core/protocol/transaction/TransactionTest.scala @@ -171,11 +171,11 @@ class TransactionTest extends FlatSpec with MustMatchers { val source = Source.fromURL(getClass.getResource("/tx_invalid.json")) //use this to represent a single test case from script_valid.json - val lines = +/* val lines = """ |[[[["0000000000000000000000000000000000000000000000000000000000000000",-1,"1"]], "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0151ffffffff010000000000000000015100000000", "P2SH"]] - """.stripMargin - //val lines = try source.getLines.filterNot(_.isEmpty).map(_.trim) mkString "\n" finally source.close() + """.stripMargin*/ + val lines = try source.getLines.filterNot(_.isEmpty).map(_.trim) mkString "\n" finally source.close() val json = lines.parseJson val testCasesOpt : Seq[Option[CoreTransactionTestCase]] = json.convertTo[Seq[Option[CoreTransactionTestCase]]] val testCases : Seq[CoreTransactionTestCase] = testCasesOpt.flatten