You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2021/01/27 15:33:01 UTC
[jira] [Comment Edited] (DAFFODIL-1420) Error when unparsing an
apostrophe (scala XMLEventReader bug)
[ https://issues.apache.org/jira/browse/DAFFODIL-1420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17272936#comment-17272936 ]
Dave Thompson edited comment on DAFFODIL-1420 at 1/27/21, 3:32 PM:
-------------------------------------------------------------------
Test apostrophe_01 in TestUnparseGeneral.scala is still commented out.
After uncommenting test apostrophe_01 and adding ":Unit = " to the @Test def statement for test apostrophe_01 in TestUnparseGeneral.scala , test apostrophe_01 executed successfully.
The TestUnparseGeneral.scala file need to be updated as specified above for the test to execute successfully.
was (Author: dfthompson):
Test apostrophe_01 in TestUnparseGeneral.scala is still commented out.
After uncommenting test apostrophe_01 and adding ":Unit = " to the @Test def statement for test apostrophe_01 in testUnparserGeneral.tdml, test apostrophe_01 executed successfully.
The TestUnparseGeneral.scala and estUnparserGeneral.tdml files need to be updated as specified above for the test to execute successfully.
> Error when unparsing an apostrophe (scala XMLEventReader bug)
> -------------------------------------------------------------
>
> Key: DAFFODIL-1420
> URL: https://issues.apache.org/jira/browse/DAFFODIL-1420
> Project: Daffodil
> Issue Type: Bug
> Components: Clean Ups, General, Libraries, Unparsing
> Affects Versions: 2.0.0
> Reporter: Jessie Chab
> Assignee: Dave Thompson
> Priority: Major
> Labels: beginner
> Fix For: 3.1.0
>
>
> This is an issue with scala's XMLEventReader. This bug has been reported and can be tracked here: https://github.com/scala/scala-xml/issues/72
> Once this has been resolved on the scala side, we need to verify that the functionality works within Daffodil.
> When attempting to unparse an apostrophe, the following error is thrown:
> {code}
> [error] Test edu.illinois.ncsa.daffodil.section00.general.TestUnparserGeneral.test_apostrophe_01 failed: edu.illinois.ncsa.daffodil.tdml.TDMLException: Unexpected data ' ' was created.
> [error] at edu.illinois.ncsa.daffodil.tdml.VerifyTestCase$.verifyTextData(TDMLRunner.scala:993)
> [error] at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase.runUnparserExpectSuccess(TDMLRunner.scala:787)
> [error] at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase$$anonfun$runProcessor$9.apply(TDMLRunner.scala:752)
> [error] at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase$$anonfun$runProcessor$9.apply(TDMLRunner.scala:751)
> [error] at scala.util.Either$RightProjection.foreach(Either.scala:469)
> [error] at edu.illinois.ncsa.daffodil.tdml.UnparserTestCase.runProcessor(TDMLRunner.scala:751)
> [error] at edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:536)
> [error] at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:318)
> [error] at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:306)
> [error] at edu.illinois.ncsa.daffodil.tdml.Runner.runOneTest(RunnerFactory.scala:48)
> [error] at edu.illinois.ncsa.daffodil.section00.general.TestUnparserGeneral.test_apostrophe_01(TestUnparserGeneral.scala:61)
> {code}
> See test:
> apostrophe_01
> In the following files:
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section00/general/testUnparserGeneral.tdml
> daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section00/general/TestUnparserGeneralDebug.scala
> daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section00/general/TestUnparserGeneral.scala
--
This message was sent by Atlassian Jira
(v8.3.4#803005)