From c62cbac2d6a32473fe1ea2538d4b4f262fef0111 Mon Sep 17 00:00:00 2001 From: olabusayoT <50379531+olabusayoT@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:43:47 -0400 Subject: [PATCH] !fixup Add support for validation of length facet - add support for length, also set minLength and maxLength with the value of length, when hasLength is true, and those variables are queried - ensure length and minLength and maxLength facets are not declared together (Xerces Error, but we have asserts incase Xerces validation is turned off) - add tests for validation=limited and validation=on - added hexBinary tests DAFFODIL-2842 --- .../validation_errors/Validation.tdml | 55 ++++++++++++++++++- .../validation_errors/TestValidationErr.scala | 6 ++ 2 files changed, 58 insertions(+), 3 deletions(-) diff --git a/daffodil-test/src/test/resources/org/apache/daffodil/section02/validation_errors/Validation.tdml b/daffodil-test/src/test/resources/org/apache/daffodil/section02/validation_errors/Validation.tdml index 01b4fe48f2..3204a59e69 100644 --- a/daffodil-test/src/test/resources/org/apache/daffodil/section02/validation_errors/Validation.tdml +++ b/daffodil-test/src/test/resources/org/apache/daffodil/section02/validation_errors/Validation.tdml @@ -425,6 +425,23 @@ + + + + + + + + + + + + + + + + + @@ -660,7 +677,39 @@ - + + + + + deadbeefdafada + + + + + DEADBEEFDAFADA + + + + + + + + + deadbeefdafada + + + + + DEADBEEFDAFADA + + +