node-postgres/test/test-helper.js

24 lines
464 B
JavaScript
Raw Normal View History

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;
2010-09-29 12:30:06 +08:00
stringToHex = function(string) {
};
hexToString = function(hexArray) {
return new Buffer(hexArray).toString('utf8');
}