File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
exist-core/src/test/xquery/xquery3 Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -846,3 +846,25 @@ function ser:serialize-xml-134() {
846
846
}
847
847
return serialize ((1 to 4 )!text {.}, $params)
848
848
};
849
+
850
+ declare
851
+ %test:assertTrue
852
+ function ser:exist-insert-final-newline-false () {
853
+ let $doc := <root>
854
+ <nested />
855
+ </root>
856
+ let $serialized := fn:serialize ($doc,
857
+ map {xs:QName ("exist:insert-final-newline" ): false ()})
858
+ return fn:ends-with ($serialized, ">" )
859
+ };
860
+
861
+ declare
862
+ %test:assertTrue
863
+ function ser:exist-insert-final-newline-true () {
864
+ let $doc := <root>
865
+ <nested />
866
+ </root>
867
+ let $serialized := fn:serialize ($doc,
868
+ map {xs:QName ("exist:insert-final-newline" ): true ()})
869
+ return fn:ends-with ($serialized, "
 " )
870
+ };
You can’t perform that action at this time.
0 commit comments