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:
[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)
|
|
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