diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-27 22:20:22 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-27 22:20:22 +0800 |
commit | 09f633596da91818201781cc009e1e1ab6f8d059 (patch) | |
tree | ffbbd41d94f8fca0d2139cf745141073549f0921 /test | |
parent | 42a25f2f26f14a0b0ecfca31b5000f7a1d50240a (diff) | |
download | go-tangerine-09f633596da91818201781cc009e1e1ab6f8d059.tar go-tangerine-09f633596da91818201781cc009e1e1ab6f8d059.tar.gz go-tangerine-09f633596da91818201781cc009e1e1ab6f8d059.tar.bz2 go-tangerine-09f633596da91818201781cc009e1e1ab6f8d059.tar.lz go-tangerine-09f633596da91818201781cc009e1e1ab6f8d059.tar.xz go-tangerine-09f633596da91818201781cc009e1e1ab6f8d059.tar.zst go-tangerine-09f633596da91818201781cc009e1e1ab6f8d059.zip |
fixed #23
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); + + }); + }); }); |