コード例 #1
0
#!/usr/bin/env node
var tTest = require('transformer-test');
var conv = require('./');

// run stock conversion tests, and try expected input/output pairs
var test = tTest.conversion(conv, [
  [new Buffer('7f000001', 'hex'), '127.0.0.1']
])
コード例 #2
0
#!/usr/bin/env node
var tTest = require('transformer-test');
var conv = require('./');

// run stock conversion tests, and try expected input/output pairs
var test = tTest.conversion(conv, [
  ['beep boop', 'YmVlcCBib29w']
])
コード例 #3
0
#!/usr/bin/env node
var tTest = require('transformer-test');
var conv = require('./');

// run stock conversion tests, and try expected input/output pairs
var test = tTest.conversion(conv, [
  ["2014-05-07T01:10:45.000Z", new Date("2014-05-07T01:10:45.000Z")]
])
コード例 #4
0
#!/usr/bin/env node
var tTest = require('transformer-test');
var conv = require('./');

// run stock conversion tests, and try expected input/output pairs
var test = tTest.conversion(conv, [
  [new Buffer('beep boop', 'ascii'), 'YmVlcCBib29w']
])
コード例 #5
0
#!/usr/bin/env node
var tTest = require('transformer-test');
var conv = require('./');

// run stock conversion tests, and try expected input/output pairs
var test = tTest.conversion(conv, [
  // [input, expectedOutput]
  [new Buffer('beep boop', 'ascii'), '6265657020626f6f70']
])
コード例 #6
0
#!/usr/bin/env node
var tTest = require('transformer-test');
var conv = require('./');

// run stock conversion tests, and try expected input/output pairs
var test = tTest.conversion(conv, [
  ["<beep>boop</beep>", ["beep","boop"]]
])
コード例 #7
0
#!/usr/bin/env node
var tTest = require('transformer-test');
var conv = require('./');

// run stock conversion tests, and try expected input/output pairs
var test = tTest.conversion(conv, [
  [new Buffer('beep boop', 'ascii'), 'c9jpaw10c9qpyw0']
])
コード例 #8
0
#!/usr/bin/env node
var tTest = require('transformer-test');
var conv = require('./');

// run stock conversion tests, and try expected input/output pairs
var test = tTest.conversion(conv, [
  ['92018', 'Carlsbad, CA']
])
コード例 #9
0
#!/usr/bin/env node
var tTest = require('transformer-test');
var conv = require('./');

// run stock conversion tests, and try expected input/output pairs
var test = tTest.conversion(conv, [
  [2130706433, '127.0.0.1']
])