Commit ccda1aac authored by obscuren's avatar obscuren

Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop

parents 03403399 a76d55c8
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -69,22 +69,22 @@ func TestNotice(t *testing.T) { ...@@ -69,22 +69,22 @@ func TestNotice(t *testing.T) {
} }
// https://github.com/ethereum/natspec.js/issues/1 // https://github.com/ethereum/natspec.js/issues/1
// 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: wrong input param in expression ''" expected = "natspec.js error evaluating expression: Error: 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)
// } else { } else {
// if err.Error() != expected { if err.Error() != expected {
// t.Errorf("expected error '%s' got '%v' (notice: '%v')", expected, err, notice) t.Errorf("expected error '%s' got '%v' (notice: '%v')", expected, err, notice)
// } }
// } }
notice, err = ns.Notice(tx, abi, "missing_method", desc) notice, err = ns.Notice(tx, abi, "missing_method", desc)
expected = "natspec.js error evaluating expression: wrong input params in expression 'Will multiply `a` by 7 and return `a * 7`.'" expected = "natspec.js error evaluating expression: Error: 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment