it("handles nested objects correctly", function(done) { expect(hstore.stringifyPart({ test: { nested: 'value' } })).to.equal('"{\\"test\\":{\\"nested\\":\\"value\\"}}"') done() })
it("handles objects correctly", function(done) { expect(hstore.stringifyPart({test: {nested: {value: {including: '"string"'}}}})).to.equal('"{\\"test\\":{\\"nested\\":{\\"value\\":{\\"including\\":\\"\\\\\\"string\\\\\\"\\"}}}}"') done() })
it("handles arrays correctly", function(done) { expect(hstore.stringifyPart([1,['2'],'"3"'])).to.equal('"[1,[\\"2\\"],\\"\\\\\\"3\\\\\\"\\"]"') done() })
it("handles simple objects correctly", function(done) { expect(hstore.stringifyPart({ test: 'value' })).to.equal('"{\\"test\\":\\"value\\"}"') done() })
it("handles strings with backslashes correctly", function(done) { expect(hstore.stringifyPart("\\'literally\\'")).to.equal('"\\\\\'literally\\\\\'"') done() })
it("handles strings correctly", function(done) { expect(hstore.stringifyPart('foo')).to.equal('"foo"') done() })
it("handles boolean values correctly", function(done) { expect(hstore.stringifyPart(false)).to.equal('false') expect(hstore.stringifyPart(true)).to.equal('true') done() })
it("handles null values correctly", function(done) { expect(hstore.stringifyPart(null)).to.equal('NULL') done() })
it("handles undefined values correctly", function(done) { expect(hstore.stringifyPart(undefined)).to.equal('NULL') done() })