var assert=require("assert"),wordwrap=require("../");exports.hard=function(){var e='Assert from {"type":"equal","ok":false,"found":1,"wanted":2,"stack":[],"id":"b7ddcd4c409de8799542a74d1a04689b","browser":"chrome/6.0"}',r=wordwrap.hard(80)(e),a=r.split("\n");assert.equal(a.length,2);assert.ok(a[0].length<80);assert.ok(a[1].length<80);assert.equal(e,r.replace(/\n/g,""))};exports["break"]=function(){var e=new Array(56).join("a"),r=wordwrap.hard(20)(e),a=r.split("\n");assert.equal(a.length,3);assert.ok(20===a[0].length);assert.ok(20===a[1].length);assert.ok(15===a[2].length);assert.equal(e,r.replace(/\n/g,""))};