mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
302 B
19 lines
302 B
13 years ago
|
|
||
|
|
||
|
var cc =require('..')
|
||
|
var INI = require('ini')
|
||
|
var assert = require('assert')
|
||
|
|
||
|
function test(obj) {
|
||
|
|
||
|
var _json, _ini
|
||
|
var json = cc.parse (_json = JSON.stringify(obj))
|
||
|
var ini = cc.parse (_ini = INI.stringify(obj))
|
||
|
console.log(_ini, _json)
|
||
|
assert.deepEqual(json, ini)
|
||
|
}
|
||
|
|
||
|
|
||
|
test({hello: true})
|
||
|
|