25 lines
463 B
JavaScript
25 lines
463 B
JavaScript
sys = require('sys');
|
|
assert = require('assert');
|
|
Client = require(__dirname+"/../lib/").Client;
|
|
Parser = require(__dirname+"/../lib/").Parser;
|
|
|
|
test = function(name, action) {
|
|
for(var i = 0; i < test.tabout; i++) {
|
|
name = ' ' + name;
|
|
}
|
|
test.tabout += 2;
|
|
console.log(name);
|
|
action();
|
|
|
|
test.tabout -= 2;
|
|
};
|
|
test.tabout = 0;
|
|
|
|
stringToHex = function(string) {
|
|
|
|
};
|
|
|
|
hexToString = function(hexArray) {
|
|
return new Buffer(hexArray).toString('utf8');
|
|
}
|