moov-io / signedxml

pure go library for processing signed XML documents
MIT License
52 stars 44 forks source link

Import daugminas/master #44

Open adamdecaf opened 9 months ago

adamdecaf commented 9 months ago

There's a lot of great work on https://github.com/moov-io/signedxml/compare/master...daugminas:signedxml:master but it deviates from the master branch we've got currently. Let's see how many of the tests pass.

Related Issues: https://github.com/moov-io/signedxml/issues/39

adamdecaf commented 9 months ago

The 3.7 example is closer than what we currently have. https://github.com/moov-io/signedxml/issues/39#issuecomment-1832293375

Failures:

  * /Users/adam/code/src/github.com/moov-io/signedxml/examples/canonicalization_test.go 
  Line 202:
  Expected: '<e1 xmlns="http://www.ietf.org" xmlns:w3c="http://www.w3.org"><e3 xmlns="" id="E3" xml:space="preserve"></e3></e1>'
  Actual:   '<doc xmlns="http://www.ietf.org">
     <e1>
        <e2 xmlns="">
           <e3 id="E3"></e3>
        </e2>
     </e1>
  </doc>'
  (Should be equal)
  Diff:     '<e1doc xmlns="http://www.ietf.org">
   xmlns:w3c="http://www.w3.org"  <e1>
        <e32 xmlns="">
           <e3 id="E3" xml:space="preserv></e"3>
        </e32>
     </e1>
  </doc>'