This is an automated email from the ASF dual-hosted git repository.

slawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git


The following commit(s) were added to refs/heads/main by this push:
     new a3d7e3877 Fixed test test_date_constructor_01 in TestDFDLExpressions
a3d7e3877 is described below

commit a3d7e38776778f7325e02b5db1234e6dce5ea5ec
Author: aparker <[email protected]>
AuthorDate: Thu Sep 5 17:07:22 2024 -0400

    Fixed test test_date_constructor_01 in TestDFDLExpressions
    
    Fixed test "test_date_constructor_01" in testDFDLExpressions.
    This involved uncommenting the test and changing the expected error message
    in date_constructor_01 in Functions.tdml
    
    This test checks that single digit days are not allowed in dates.
    
    This test has been disabled for a long time due to a now fixed bug where
    single digit days were being allowed in dates. This bug has been fixed
    and single digit days are no longer allowed, so the test has been 
renenabled,
    and the expected error message has been updated
    
     DAFFODIL-1124
---
 .../org/apache/daffodil/section23/dfdl_functions/Functions.tdml         | 2 +-
 .../daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_functions/Functions.tdml
 
b/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_functions/Functions.tdml
index cb97be60d..b479a547c 100644
--- 
a/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_functions/Functions.tdml
+++ 
b/daffodil-test/src/test/resources/org/apache/daffodil/section23/dfdl_functions/Functions.tdml
@@ -9106,7 +9106,7 @@
     </tdml:document>
     <tdml:errors>
       <tdml:error>Parse Error</tdml:error>
-      <tdml:error>Invalid date "1991-03-4" (Day must be two 
digits)</tdml:error>
+      <tdml:error>Failed to parse xs:date from string: 1991-03-4</tdml:error>
     </tdml:errors>
   </tdml:parserTestCase>
   
diff --git 
a/daffodil-test/src/test/scala/org/apache/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala
 
b/daffodil-test/src/test/scala/org/apache/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala
index 5df94f497..3fa1b3d5e 100644
--- 
a/daffodil-test/src/test/scala/org/apache/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala
+++ 
b/daffodil-test/src/test/scala/org/apache/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala
@@ -1326,7 +1326,7 @@ class TestDFDLExpressions {
   @Test def test_time_constructor_04(): Unit = { 
runner2.runOneTest("time_constructor_04") }
 
   // DFDL-1124
-  // @Test def test_date_constructor_01() { 
runner2.runOneTest("date_constructor_01") }
+  @Test def test_date_constructor_01(): Unit = { 
runner2.runOneTest("date_constructor_01") }
   @Test def test_date_constructor_02(): Unit = { 
runner2.runOneTest("date_constructor_02") }
   // @Test def test_date_constructor_02a() { 
runner2.runOneTest("date_constructor_02a") }
   @Test def test_date_constructor_03(): Unit = { 
runner2.runOneTest("date_constructor_03") }

Reply via email to