jadams-tresys commented on a change in pull request #570:
URL: https://github.com/apache/daffodil/pull/570#discussion_r638832798
##########
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:
I was able to write a test that covers this without needing to do a unit
test. Just needed a test where the separator is determined at runtime.
--
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]