[ 
https://issues.apache.org/jira/browse/DAFFODIL-1101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17089091#comment-17089091
 ] 

Mike Beckerle commented on DAFFODIL-1101:
-----------------------------------------

The test case looks like this:

{code:java}
  <tdml:parserTestCase name="namespace_uri_01" root="e1"
    model="home_schema.dfdl.xsd" description="Section 23 - Functions - 
fn:namespace-uri() - DFDL-23-126R">

    <tdml:document>
      <tdml:documentPart type="text">1:123</tdml:documentPart>
    </tdml:document>
    <tdml:infoset>
      <tdml:dfdlInfoset>
        <e1>
          <two>123</two>
          <uri1>http://home.com</uri1>
          <uri2>http://first.com</uri2>
        </e1>
      </tdml:dfdlInfoset>
    </tdml:infoset>
  </tdml:parserTestCase>
{code}

I suggest removing the root="e1" attribute, and putting a namespace prefix on 
the <e1>...</e1> element tags, where that prefix is bound to the right 
namespace http://first.com or http://home.com. 





> MissingFormatArgumentException: Format specifier 's'
> ----------------------------------------------------
>
>                 Key: DAFFODIL-1101
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1101
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End, General
>            Reporter: Jessie Chab
>            Priority: Major
>
> When creating tests for the namespace-uri() function, I somehow managed to 
> trigger an error condition that caused this exception:
> [error] Test 
> edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressions.test_namespace_uri_01
>  failed: edu.illinois.ncsa.daffodil.exceptions.Abort: why are you comparing 
> two things that aren't the same type even?
> [error] edu.illinois.ncsa.daffodil.exceptions.Assert$.abort(Assert.scala:95)
> I had this test working at one point so I'm not sure how I got to this state. 
> I was amused by the exception but figured we should either revisit the 
> wording or figure out how it was triggered and make sure that can't happen 
> anymore.
> See test namespace_uri_01 in the following files:
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/first_schema.dfdl.xsd
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/home_schema.dfdl.xsd
> daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/second_schema.dfdl.xsd
> daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala
> daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressions.scala



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to