Skip to content

Commit 493c65b

Browse files
authored
Merge pull request #4773 from line-o/test/serialization
[test] fix and add adaptive serialization tests
2 parents bdf9e3f + 9db11d2 commit 493c65b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

exist-core/src/test/xquery/xquery3/serialize.xql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ function ser:serialize-empty-sequence() {
254254

255255
declare
256256
%test:args(1234)
257-
%test:assertEquals(1234)
257+
%test:assertEquals('1234')
258+
%test:args('1234')
259+
%test:assertEquals('"1234"')
258260
%test:args('Hello "world"!')
259261
%test:assertEquals('"Hello ""world""!"')
260262
function ser:adaptive-simple-atomic($atomic as xs:anyAtomicType) {
@@ -263,7 +265,9 @@ function ser:adaptive-simple-atomic($atomic as xs:anyAtomicType) {
263265

264266
declare
265267
%test:args(1234)
266-
%test:assertEquals(1234)
268+
%test:assertEquals('1234')
269+
%test:args('1234')
270+
%test:assertEquals('"1234"')
267271
%test:args('Hello "world"!')
268272
%test:assertEquals('"Hello ""world""!"')
269273
function ser:adaptive-simple-atomic-map-params($atomic as xs:anyAtomicType) {

0 commit comments

Comments
 (0)