Script: adds toASM/fromASM
This commit is contained in:
parent
7e85515e37
commit
13d41f67e9
5 changed files with 78 additions and 38 deletions
test
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue