diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/abi.parsers.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/abi.parsers.js b/test/abi.parsers.js index 19fa1d4cf..b7a05cea3 100644 --- a/test/abi.parsers.js +++ b/test/abi.parsers.js @@ -823,6 +823,38 @@ describe('abi', function() { }); + it('should parse 0x value', function () { + + // given + var d = clone(description); + d[0].outputs = [ + { type: 'int' } + ]; + + // when + var parser = abi.outputParser(d); + + // then + assert.equal(parser.test("0x")[0], 0); + + }); + + it('should parse 0x value', function () { + + // given + var d = clone(description); + d[0].outputs = [ + { type: 'uint' } + ]; + + // when + var parser = abi.outputParser(d); + + // then + assert.equal(parser.test("0x")[0], 0); + + }); + }); }); |