2013-12-06 16:49:25 +00:00
|
|
|
/* vim: set ts=2: */
|
|
|
|
var SSF = require('../');
|
|
|
|
var fs = require('fs'), assert = require('assert');
|
|
|
|
var data = JSON.parse(fs.readFileSync('./test/implied.json','utf8'));
|
2013-12-15 04:50:54 +00:00
|
|
|
var skip = [48];
|
2013-12-06 16:49:25 +00:00
|
|
|
describe('implied formats', function() {
|
|
|
|
data.forEach(function(d) {
|
2013-12-14 03:28:57 +00:00
|
|
|
it(d[1]+" for "+d[0], skip.indexOf(d[1]) > -1 ? null : function(){
|
2013-12-06 16:49:25 +00:00
|
|
|
assert.equal(SSF.format(d[1], d[0], {}), d[2]);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|