Skip to content

Commit f868cf1

Browse files
committed
Added another test for BASE64.
1 parent 649399c commit f868cf1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nodejs/scripts/tests/xsd.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,13 @@ module.exports =
428428
test.equal(67, d3[2]);
429429
test.equal('QUJD', Jsonix.Schema.XSD.Base64Binary.INSTANCE.print(d3));
430430
test.done();
431+
432+
var d4 = Jsonix.Schema.XSD.Base64Binary.INSTANCE.parse('1g==');
433+
test.ok(Jsonix.Schema.XSD.Base64Binary.INSTANCE.isInstance(d4));
434+
test.equal(1, d4.length);
435+
test.equal(214, d4[0]);
436+
test.equal('1g==', Jsonix.Schema.XSD.Base64Binary.INSTANCE.print(d4));
437+
431438
},
432439
"HexBinary": function(test) {
433440
var d0 = Jsonix.Schema.XSD.HexBinary.INSTANCE.parse('');

0 commit comments

Comments
 (0)