Script: adds toASM/fromASM

This commit is contained in:
Daniel Cousens 2014-06-25 15:44:15 +10:00
parent 7e85515e37
commit 13d41f67e9
5 changed files with 78 additions and 38 deletions

View file

@ -21,6 +21,14 @@ describe('Script', function() {
})
})
describe('fromASM/toASM', function() {
fixtures.valid.forEach(function(f) {
it('decodes/encodes ' + f.description, function() {
assert.equal(Script.fromASM(f.asm).toASM(), f.asm)
})
})
})
describe('fromHex/toHex', function() {
fixtures.valid.forEach(function(f) {
it('decodes/encodes ' + f.description, function() {