You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by mb...@apache.org on 2019/09/23 16:25:30 UTC

[incubator-daffodil] branch master updated: Improve diagnostic with more hex output.

This is an automated email from the ASF dual-hosted git repository.

mbeckerle pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-daffodil.git


The following commit(s) were added to refs/heads/master by this push:
     new 5f167e3  Improve diagnostic with more hex output.
5f167e3 is described below

commit 5f167e3685d35959055e92acdecab9c9959c3e7b
Author: Michael Beckerle <mb...@tresys.com>
AuthorDate: Tue Sep 17 16:44:01 2019 -0700

    Improve diagnostic with more hex output.
    
    DAFFODIL-2204
---
 .../src/main/scala/org/apache/daffodil/tdml/TDMLRunner.scala          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/daffodil-tdml-lib/src/main/scala/org/apache/daffodil/tdml/TDMLRunner.scala b/daffodil-tdml-lib/src/main/scala/org/apache/daffodil/tdml/TDMLRunner.scala
index 43c6748..aec1df1 100644
--- a/daffodil-tdml-lib/src/main/scala/org/apache/daffodil/tdml/TDMLRunner.scala
+++ b/daffodil-tdml-lib/src/main/scala/org/apache/daffodil/tdml/TDMLRunner.scala
@@ -1638,7 +1638,9 @@ object VerifyTestCase {
 
     lazy val expectedAndActualDisplayStrings = "\n" +
       "Excected data (as iso8859-1): " + displayableExpected + "\n" +
-      "Actual data                 : " + displayableActual
+      "Actual data   (as iso8859-1): " + displayableActual + "\n" +
+      "Expected data (as hex): " + Misc.bytes2Hex(expectedBytes) + "\n" +
+      "Actual data   (as hex): " + Misc.bytes2Hex(actualBytes)
 
     val readCount = expectedBytes.length
     expectedData.close()