{"name":"claire","version":"0.3.4","description":"Property-based testing library (à lá QuickCheck/ScalaCheck).","main":"./lib/index.js","directories":{"doc":"docs"},"dependencies":{"boo":"~1.2.4","prelude-ls":"~0.6.0","flaw":"~0.1.0"},"devDependencies":{"LiveScript":"~1.1.1","mocha":"~1.8.1","es5-shim":"~2.0.5","browserify":"~2.4.3"},"scripts":{"test-cc":"./node_modules/.bin/lsc -o lib-test -c test/*.ls && ./node_modules/.bin/lsc -o lib -c src/*.ls","test":"./node_modules/.bin/mocha lib-test/*.js","pretest-browser":"npm run-script test-cc && ./node_modules/.bin/browserify -o test/browser/suite-bundle.js -e test/browser/suite.js","pretest":"npm run-script test-cc","prepublish":"./node_modules/.bin/lsc -o lib -c src/*.ls"},"repository":{"type":"git","url":"git://github.com/killdream/claire.git"},"keywords":["testing","test","property-based testing","random testing","quickcheck"],"author":{"name":"Quildreen \"Sorella\" Motta","email":"quildreen@gmail.com"},"license":"MIT","readmeFilename":"README.md","calliope":{"output":"docs/api","copyright":"© 2013 Quildreen \"Sorella\" Motta","packages":[{"files":["src/*.ls"]}]},"testling":{"files":"test/browser/suite.js","preprocess":"npm run-script pretest-browser","browsers":{"ie":[6,7,8,9,10],"firefox":[15,"nightly"],"chrome":[21,22,"canary"],"opera":[10,12,"next"],"safari":[5.1]},"harness":"mocha"},"readme":"# Claire [![Build Status](https://travis-ci.org/killdream/claire.png)](https://travis-ci.org/killdream/claire)\n\n\nClaire is a random testing library for both property-based testing\n([QuickCheck][]-like) and random program generation ([ScalaCheck][] command's\nlike), which allows you to express your code's behaviours and invariants\nin a clear way.\n\n### Platform support\n\nClaire should work neatly in all ES5 platforms. ES3 platforms (IE8-,\netc) can use [es5-shim][] to provide the fallbacks necessary.\n\nThings are frozen to ensure immutability, but legacy engines can do\nwithout, so `Object.freeze = function(a) { return a }` is okay.\n\n[![browser support](http://ci.testling.com/killdream/claire.png)](http://ci.testling.com/killdream/claire)\n\n\n### Example \n\n```js\nvar claire = require('claire')\nvar _      = claire.data\nvar forAll = claire.forAll\n\nvar commutative_p = forAll( _.Int, _.Int ).satisfy( function(a, b) {\n                      return a + b == b + a\n                    }).asTest()\n// + OK passed 100 tests.\n\n\nvar identity_p = forAll(_.Int).satisfy(function(a) {\n                   return a == a + 1\n                 })\n\nidentity_p.asTest({ verbose: true, times: 100 })()\n// <property failed>: ! Falsified after 1 tests, 1 failed.\n//\n// : Failure #1 --------------------\n//\n//\n// : The following arguments were provided:\n//   0 - 93 (<int>)\n//\n// (Stack trace)\n```\n\n\n### Installing\n\nJust grab it from NPM:\n\n```js\nnpm install claire\n```\n\n\n### Documentation\n\nA reference of the API can be built using [Calliope][]:\n\n```js\n$ npm install -g calliope\n$ calliope build\n```\n\nA fully narrated documentation explaining the concepts behind the\nlibrary is planned for a future release. Current WIP can be found at\nhttp://claire.readthedocs.org/.\n\n\n### Tests\n\nYou can run all tests using Mocha:\n\n```js\n$ npm test\n```\n\n\n### Licence\n\nMIT/X11. ie.: do whatever you want.\n\n\n[claire-mocha]: http://github.com/killdream/claire-mocha.git\n[Calliope]: http://github.com/killdream/calliope.git\n[es5-shim]: https://github.com/kriskowal/es5-shim\n[QuickCheck]: https://github.com/nick8325/quickcheck\n[ScalaCheck]: https://github.com/rickynils/scalacheck\n","_id":"claire@0.3.4","dist":{"shasum":"8262af1888ceb1ff41c281dcf1a035a81d8f413c","tarball":"http://registry-npm.ywwl.com/claire/download/claire-0.3.4.tgz","integrity":"sha512-EniiHsDxzNDEpxvUQKh7zeC/vljE+kZyy5DGE+EO14ADBqyOlPHw3L0eaNQzRK2WSDSs0/SDVij7Jc3+J02Rrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlnXpBNuJEY7R/h4cTR3xCgcEvicsrsy6d1xyiqNGZQAiEAwMadBTvCBMzWz3oHkn5N4/DBeRy+XaqClf6zpcdnn7U="}],"size":104556,"noattachment":false,"key":"/claire/-/claire-0.3.4.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"killdream","email":"quildreen@gmail.com"},"maintainers":[{"name":"killdream","email":"quildreen@gmail.com"}],"publish_time":1367091136975,"_cnpm_publish_time":1367091136975,"dist-tags":{"latest":"0.4.1"}}