From 63bc625c332ca514b8c527e57a0e8fc3c73529a9 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Wed, 10 Dec 2014 12:48:32 -0300 Subject: [PATCH] add Script#removeCodeSeparators tests --- test/script.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/script.js b/test/script.js index bbfba74..6c9c0aa 100644 --- a/test/script.js +++ b/test/script.js @@ -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'); + }); + }); });