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
e88a29ad
Commit
e88a29ad
authored
Mar 23, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #553 from ethersphere/jsonlog
natspec: minor fix in test
parents
f2f65c1a
53af8108
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
natspec_test.go
common/natspec/natspec_test.go
+2
-2
No files found.
common/natspec/natspec_test.go
View file @
e88a29ad
...
@@ -72,7 +72,7 @@ func TestNotice(t *testing.T) {
...
@@ -72,7 +72,7 @@ func TestNotice(t *testing.T) {
badDesc
:=
"Will multiply `e` by 7 and return `a * 7`."
badDesc
:=
"Will multiply `e` by 7 and return `a * 7`."
notice
,
err
=
ns
.
Notice
(
tx
,
abi
,
method
,
badDesc
)
notice
,
err
=
ns
.
Notice
(
tx
,
abi
,
method
,
badDesc
)
expected
=
"natspec.js error evaluating expression:
Error:
Natspec evaluation failed, wrong input params"
expected
=
"natspec.js error evaluating expression: Natspec evaluation failed, wrong input params"
if
err
==
nil
{
if
err
==
nil
{
t
.
Errorf
(
"expected error, got nothing (notice: '%v')"
,
notice
)
t
.
Errorf
(
"expected error, got nothing (notice: '%v')"
,
notice
)
...
@@ -84,7 +84,7 @@ func TestNotice(t *testing.T) {
...
@@ -84,7 +84,7 @@ func TestNotice(t *testing.T) {
notice
,
err
=
ns
.
Notice
(
tx
,
abi
,
"missing_method"
,
desc
)
notice
,
err
=
ns
.
Notice
(
tx
,
abi
,
"missing_method"
,
desc
)
expected
=
"natspec.js error evaluating expression:
Error:
Natspec evaluation failed, method does not exist"
expected
=
"natspec.js error evaluating expression: Natspec evaluation failed, method does not exist"
if
err
==
nil
{
if
err
==
nil
{
t
.
Errorf
(
"expected error, got nothing (notice: '%v')"
,
notice
)
t
.
Errorf
(
"expected error, got nothing (notice: '%v')"
,
notice
)
...
...
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