Added testcase name to failed test cases.
This commit is contained in:
parent
ebd9bbde2e
commit
7394e83eeb
@ -79,7 +79,7 @@ function testContractInterface(test) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
var encoded = Interface.encodeParams(types, values);
|
var encoded = Interface.encodeParams(types, values);
|
||||||
test.equal(result, encoded, 'failed to encode data');
|
test.equal(result, encoded, 'failed to encode data - ' + testcase.name);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
test.ok(false, 'Failed Encode (' + testcase.name + ') - ' + error.message);
|
test.ok(false, 'Failed Encode (' + testcase.name + ') - ' + error.message);
|
||||||
@ -93,7 +93,7 @@ function testContractInterface(test) {
|
|||||||
decodedArray.push(decoded[i]);
|
decodedArray.push(decoded[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
test.ok(equals(values, decodedArray), 'failed to decode parameters');
|
test.ok(equals(values, decodedArray), 'failed to decode parameters - ' + testcase.name);
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
test.ok(false, 'Failed Decode (' + testcase.name + ') - ' + error.message);
|
test.ok(false, 'Failed Decode (' + testcase.name + ') - ' + error.message);
|
||||||
|
Loading…
Reference in New Issue
Block a user