Michael Beckerle created DAFFODIL-2127:
------------------------------------------
Summary: Site doc of twopass and threepass TDML tests is not
correct.
Key: DAFFODIL-2127
URL: https://issues.apache.org/jira/browse/DAFFODIL-2127
Project: Daffodil
Issue Type: Bug
Components: Documentation
Affects Versions: 2.3.0
Reporter: Michael Beckerle
This doc is not correct. Incorrect text is highlighted in red.
{{twoPass}}
_tdml:parserTestCase:_ Parse given data, {color:#d04437}compare to expected
infoset, expect failure.{color} Unparse infoset, compare to given data, expect
failure. Parse output data to a second infoset. Compare to first infoset,
expect success.
_tdml:unparserTestCase:_ Invalid
{{threePass}}
_tdml:parserTestCase:_ Parse given data, compare to expected infoset, expect
failure. Unparse infoset to first output data, compare to given data, expect
failure. Parse first output data to second infoset. Compare to expected
infoset, {color:#d04437}expect failure{color}. Unparse second infoset to second
output data, compare to first output data, expect success.
In a two pass test, the original infoset is not even compared.
In a three pass test, the reparsed infoset is expected to match and be the
steady state infoset.
Arguably these are not the only possible definitions of what a twoPass test or
threePass test should be, but they are most consistent with our test cases to
date, and seem useful for testing going forward.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)