mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
mocha opts file && init of parser tests
This commit is contained in:
parent
e0ad98388a
commit
2ee9229ca6
37
abi.parsers.js
Normal file
37
abi.parsers.js
Normal file
@ -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() {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
2
mocha.opts
Normal file
2
mocha.opts
Normal file
@ -0,0 +1,2 @@
|
||||
--reporter Nyan
|
||||
|
Loading…
Reference in New Issue
Block a user