aboutsummaryrefslogtreecommitdiffstats
path: root/test/abi.parsers.js
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-01-12 00:54:36 +0800
committerGav Wood <i@gavwood.com>2015-01-12 00:54:36 +0800
commitded221fba2cc21e1037a1130d9d142e657a52e89 (patch)
tree48d0c2871eafec7049d0f5c04b24db8d0f91df3f /test/abi.parsers.js
parent47687cf085196e2e4fa7ec42ff426f241dae10c5 (diff)
downloaddexon-ded221fba2cc21e1037a1130d9d142e657a52e89.tar
dexon-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.gz
dexon-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.bz2
dexon-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.lz
dexon-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.xz
dexon-ded221fba2cc21e1037a1130d9d142e657a52e89.tar.zst
dexon-ded221fba2cc21e1037a1130d9d142e657a52e89.zip
Merge commit 'ab745d3b0eb89d67db1ed953020c665be3d072ed' into develop
Conflicts: libjsqrc/ethereumjs/.travis.yml libjsqrc/ethereumjs/README.md libjsqrc/ethereumjs/dist/ethereum.js libjsqrc/ethereumjs/dist/ethereum.js.map libjsqrc/ethereumjs/lib/abi.js libjsqrc/ethereumjs/package.json
Diffstat (limited to 'test/abi.parsers.js')
-rw-r--r--test/abi.parsers.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/abi.parsers.js b/test/abi.parsers.js
new file mode 100644
index 000000000..06a77fb86
--- /dev/null
+++ b/test/abi.parsers.js
@@ -0,0 +1,37 @@
+var assert = require('assert');
+var abi = require('../lib/abi.js');
+
+describe('abi', function() {
+ describe('inputParser', function() {
+ it('should parse ...', function() {
+
+ var desc = [{
+ "name": "multiply",
+ "inputs": [
+ {
+ "name": "a",
+ "type": "uint256"
+ }
+ ],
+ "outputs": [
+ {
+ "name": "d",
+ "type": "uint256"
+ }
+ ]
+ }];
+
+ var iParser = abi.inputParser(desc);
+ assert.equal(iParser.multiply(1), "0x000000000000000000000000000000000000000000000000000000000000000001");
+
+ });
+ });
+
+
+ describe('outputParser', function() {
+ it('parse ...', function() {
+
+ });
+ });
+});
+