#!/usr/bin/env node "use strict"; var tape = require('blue-tape'); global.Zmodem = require('./lib/zmodem'); var enclib = Zmodem.ENCODELIB; tape('round-trip: 32-bit little-endian', function(t) { var times = 1000; t.doesNotThrow( () => { for (var a=0; a c.charCodeAt(0) ), 'hex encoding' ); t.end(); } ); tape('parse_hex_octets', function(t) { t.deepEquals( enclib.parse_hex_octets( [ 48, 49, 102, 101 ] ), [ 0x01, 0xfe ], 'parse hex excoding', ); t.end(); } ); tape('round-trip: 16-bit big-endian', function(t) { var times = 10000; t.doesNotThrow( () => { for (var a=0; a