Browse Source

Merge pull request #116 from dcousens/patch-1

Fixes actual/expected parameter ordering
hk-custom-address
Wei Lu 11 years ago
parent
commit
9f74d1396b
  1. 6
      test/base58.js
  2. 4
      test/base58check.js

6
test/base58.js

@ -9,7 +9,7 @@ describe('base58', function() {
evec = [
'5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAbuatmU', // 0x00 WIF
'5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf', // 0x01 WIF
'5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreQyNNN1W', // 0x7f WIF
'5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreQyNNN1W', // 0x7f WIF
'1EHNa6Q4Jz2uvNExL497mE43ikXhwF6kZm', // uncompressed 0x01 address
'1FB8cZijTpRQp3HX8AEkNuQJBqApqfTcX7' // uncompressed 0x7f address
]
@ -32,7 +32,7 @@ describe('base58', function() {
var actual = base58.decode(x)
var expected = dvec[i]
assert.deepEqual(expected, actual)
assert.deepEqual(actual, expected)
})
})
})
@ -43,7 +43,7 @@ describe('base58', function() {
var actual = base58.encode(x)
var expected = evec[i]
assert.deepEqual(expected, actual)
assert.deepEqual(actual, expected)
})
})
})

4
test/base58check.js

@ -58,7 +58,7 @@ describe('base58check', function() {
var actual = base58check.decode(x)
var expected = dvec[i]
assert.deepEqual(expected, actual)
assert.deepEqual(actual, expected)
})
})
})
@ -69,7 +69,7 @@ describe('base58check', function() {
var actual = base58check.encode(x.payload, x.version)
var expected = evec[i]
assert.deepEqual(expected, actual)
assert.deepEqual(actual, expected)
})
})
})

Loading…
Cancel
Save