add Script#removeCodeSeparators tests

This commit is contained in:
Manuel Araoz 2014-12-10 12:48:32 -03:00
parent 65150f1e61
commit 63bc625c33
1 changed files with 5 additions and 0 deletions

View File

@ -494,5 +494,10 @@ describe('Script', function() {
});
});
describe('#removeCodeseparators', function() {
it('should remove any OP_CODESEPARATORs', function() {
Script('OP_CODESEPARATOR OP_0 OP_CODESEPARATOR').removeCodeseparators().toString().should.equal('OP_0');
});
});
});