mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-04-24 11:16:38 +00:00
isProbablyBinary() used for uploading files
This commit is contained in:
@@ -110,3 +110,12 @@ describe('LZG', function() {
|
||||
assert.equal(40976, rom.length);
|
||||
});
|
||||
});
|
||||
|
||||
describe('string functions', function() {
|
||||
it('Should detect binary', function() {
|
||||
assert.ok(!util.isProbablyBinary([32,32,10,13,9,32,32,10,13]));
|
||||
assert.ok(util.isProbablyBinary([32,32,0x80]));
|
||||
assert.ok(!util.isProbablyBinary([32,32,0xc1,0x81,32,32,10,13]));
|
||||
assert.ok(util.isProbablyBinary(NES_CONIO_ROM_LZG));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user