mbeckerle commented on a change in pull request #129: Cross Testing Capability 
with IBM DFDL
URL: https://github.com/apache/incubator-daffodil/pull/129#discussion_r230863064
 
 

 ##########
 File path: 
daffodil-tdml/src/main/scala/org/apache/daffodil/tdml/TDMLRunner.scala
 ##########
 @@ -275,16 +284,17 @@ class DFDLTestSuite private[tdml] (
   // We call it an UnparserTestCase
   //
   val unparserTestCases = (ts \ "unparserTestCase").map { node => 
UnparserTestCase(node, this) }
-  val testCases: Seq[TestCase] = parserTestCases ++
-    unparserTestCases
-  val duplicateTestCases = testCases.groupBy { _.name }.filter { case (name, 
seq) => seq.length > 1 }
-  if (duplicateTestCases.size > 0) {
+  val testCases: Seq[TestCase] = parserTestCases ++ unparserTestCases
+  val duplicateTestCases = testCases.groupBy {
+    _.tcName
+  }.filter { case (name, seq) => seq.length > 1 }
+  if (duplicateTestCases.nonEmpty) {
     duplicateTestCases.foreach {
       case (name, _) =>
         System.err.println("TDML Runner: More than one test case for name 
'%s'.".format(name))
 
 Review comment:
   It is tolerated because we didn't want to hunt them down and fix them. They 
were there in the test suite, quite a few, at one time. I haven't checked 
lately but there's a JIRA ticket to fix them I think, at which point yes, this 
should be an exception. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to