Skip to content

Commit eaccc57

Browse files
committed
Added a test for issue #169.
1 parent 708a72e commit eaccc57

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nodejs/scripts/tests/xsd.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,12 @@ module.exports =
435435
test.equal(214, d4[0]);
436436
test.equal('1g==', Jsonix.Schema.XSD.Base64Binary.INSTANCE.print(d4));
437437

438+
var d5 = Jsonix.Schema.XSD.Base64Binary.INSTANCE.parse('BwABBJQ1gJDUCAAAAAAA=');
439+
test.ok(Jsonix.Schema.XSD.Base64Binary.INSTANCE.isInstance(d5));
440+
test.equal(15, d5.length);
441+
test.equal(7, d5[0]);
442+
test.equal('BwABBJQ1gJDUCAAAAAAA', Jsonix.Schema.XSD.Base64Binary.INSTANCE.print(d5));
443+
438444
},
439445
"HexBinary": function(test) {
440446
var d0 = Jsonix.Schema.XSD.HexBinary.INSTANCE.parse('');

0 commit comments

Comments
 (0)