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
823fb299
Commit
823fb299
authored
Jan 17, 2015
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests for parsing output array
parent
1e2c1ae9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
abi.parsers.js
test/abi.parsers.js
+27
-0
No files found.
test/abi.parsers.js
View file @
823fb299
...
@@ -716,6 +716,33 @@ describe('abi', function() {
...
@@ -716,6 +716,33 @@ describe('abi', function() {
});
});
it
(
'should parse output array'
,
function
()
{
// given
var
d
=
clone
(
description
);
d
[
0
].
outputs
=
[
{
type
:
'int[]'
}
];
// when
var
parser
=
abi
.
outputParser
(
d
);
// then
assert
.
equal
(
parser
.
test
(
"0x"
+
"0000000000000000000000000000000000000000000000000000000000000002"
+
"0000000000000000000000000000000000000000000000000000000000000005"
+
"0000000000000000000000000000000000000000000000000000000000000006"
)[
0
][
0
],
5
);
assert
.
equal
(
parser
.
test
(
"0x"
+
"0000000000000000000000000000000000000000000000000000000000000002"
+
"0000000000000000000000000000000000000000000000000000000000000005"
+
"0000000000000000000000000000000000000000000000000000000000000006"
)[
0
][
1
],
6
);
});
});
});
});
});
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