mbeckerle commented on a change in pull request #570:
URL: https://github.com/apache/daffodil/pull/570#discussion_r635224121
##########
File path:
daffodil-runtime1/src/main/scala/org/apache/daffodil/processors/dfa/TextDelimitedUnparser.scala
##########
@@ -248,6 +248,8 @@ class TextDelimitedUnparser(override val context:
TermRuntimeData)
escapeEscapeChar: MaybeChar, state: UState): (String, Boolean) = {
Assert.invariant(delims != null)
Assert.invariant(field != null)
+ if (hasEscCharAsDelimiter)
+ UnparseError(One(context.schemaFileLocation),
One(state.currentLocation), "Delimiters may not begin with the
dfdl:escapeCharacter (%s)", escapeChar)
Review comment:
Surprising this is uncovered. I guess you need a specifically
unparserTestCase, because a negative parserTestCase will never get to the
unparse.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]