From 7394e83eebad14b49b6700b5fa2181de8d26f5ff Mon Sep 17 00:00:00 2001 From: ricmoo Date: Mon, 27 Feb 2017 17:29:23 -0500 Subject: [PATCH] Added testcase name to failed test cases. --- tests/run-contract-interface.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run-contract-interface.js b/tests/run-contract-interface.js index c41a56885..bfa79d235 100644 --- a/tests/run-contract-interface.js +++ b/tests/run-contract-interface.js @@ -79,7 +79,7 @@ function testContractInterface(test) { try { 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) { test.ok(false, 'Failed Encode (' + testcase.name + ') - ' + error.message); @@ -93,7 +93,7 @@ function testContractInterface(test) { 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) { test.ok(false, 'Failed Decode (' + testcase.name + ') - ' + error.message);