Changed filenames of namehash test cases.
This commit is contained in:
parent
9e80c55275
commit
00b628c6cc
@ -41,5 +41,5 @@ for i in xrange(0, len(Tests)):
|
||||
else:
|
||||
test['expected'] = hash
|
||||
|
||||
with file('../tests/ens.json', 'w') as f:
|
||||
with file('../tests/namehash.json', 'w') as f:
|
||||
f.write(json.dumps(Tests))
|
||||
|
@ -93,7 +93,7 @@ function testUnits(test) {
|
||||
function testNamehash(test) {
|
||||
var namehash = require('../utils/namehash');
|
||||
|
||||
var testcases = require('./tests/ens.json');
|
||||
var testcases = require('./tests/namehash.json');
|
||||
testcases.forEach(function(testcase) {
|
||||
test.equal(namehash(testcase.name), testcase.expected, 'namehash(' + testcase.name + ')');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user