Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
c397e350
Commit
c397e350
authored
Jan 08, 2015
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mocha opts file && init of parser tests
parent
b6058a83
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
0 deletions
+40
-0
abi.js
lib/abi.js
+1
-0
abi.parsers.js
test/abi.parsers.js
+37
-0
mocha.opts
test/mocha.opts
+2
-0
No files found.
lib/abi.js
View file @
c397e350
...
@@ -263,3 +263,4 @@ module.exports = {
...
@@ -263,3 +263,4 @@ module.exports = {
inputParser
:
inputParser
,
inputParser
:
inputParser
,
outputParser
:
outputParser
outputParser
:
outputParser
};
};
test/abi.parsers.js
0 → 100644
View file @
c397e350
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
()
{
});
});
});
test/mocha.opts
0 → 100644
View file @
c397e350
--reporter Nyan
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment