Skip to content

Commit

Permalink
feat(bool): Obligatory bool() generator
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvdm committed Apr 24, 2020
1 parent 8f8b204 commit e67385d
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bool.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function bool(id) {
return !!(id % 2)
}
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
exports.int = require('./int')
exports.word = require('./word')
exports.bool = require('./bool')
54 changes: 51 additions & 3 deletions tap-snapshots/tests-fictional.test.js-TAP.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,207 +5,255 @@
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[
`tests/fictional.test.js TAP generated values > must match snapshot 1`
] = `
exports[`tests/fictional.test.js TAP generated values > must match snapshot 1`] = `
Array [
Object {
"bool": false,
"int": 177557,
"word": "duqe",
},
Object {
"bool": true,
"int": 177556,
"word": "hoyo",
},
Object {
"bool": false,
"int": 177559,
"word": "jizi",
},
Object {
"bool": true,
"int": 177558,
"word": "mega",
},
Object {
"bool": false,
"int": 177553,
"word": "naza",
},
Object {
"bool": true,
"int": 177552,
"word": "ruduq",
},
Object {
"bool": false,
"int": 177555,
"word": "sokegu",
},
Object {
"bool": true,
"int": 177554,
"word": "winazam",
},
Object {
"bool": false,
"int": 177565,
"word": "xetiqomu",
},
Object {
"bool": true,
"int": 177564,
"word": "baloxapad",
},
Object {
"bool": false,
"int": 5859332,
"word": "qiho",
},
Object {
"bool": true,
"int": 5859365,
"word": "tuna",
},
Object {
"bool": false,
"int": 5859398,
"word": "vefi",
},
Object {
"bool": true,
"int": 5859431,
"word": "yolu",
},
Object {
"bool": false,
"int": 5859200,
"word": "zapa",
},
Object {
"bool": true,
"int": 5859233,
"word": "divif",
},
Object {
"bool": false,
"int": 5859266,
"word": "fuyosa",
},
Object {
"bool": true,
"int": 5859299,
"word": "jesefir",
},
Object {
"bool": false,
"int": 5859596,
"word": "kowisemo",
},
Object {
"bool": true,
"int": 5859629,
"word": "nacuyosah",
},
Object {
"bool": false,
"int": 5859335,
"word": "coto",
},
Object {
"bool": true,
"int": 5859366,
"word": "gane",
},
Object {
"bool": false,
"int": 5859397,
"word": "hiri",
},
Object {
"bool": true,
"int": 5859428,
"word": "luxu",
},
Object {
"bool": false,
"int": 5859203,
"word": "meba",
},
Object {
"bool": true,
"int": 5859234,
"word": "qohid",
},
Object {
"bool": false,
"int": 5859265,
"word": "rayusi",
},
Object {
"bool": true,
"int": 5859296,
"word": "vifeyuj",
},
Object {
"bool": false,
"int": 5859599,
"word": "wujizumu",
},
Object {
"bool": true,
"int": 5859630,
"word": "zepugeqof",
},
Object {
"bool": false,
"int": 5859334,
"word": "pulu",
},
Object {
"bool": true,
"int": 5859367,
"word": "sefi",
},
Object {
"bool": false,
"int": 5859396,
"word": "tojo",
},
Object {
"bool": true,
"int": 5859429,
"word": "xapa",
},
Object {
"bool": false,
"int": 5859202,
"word": "yise",
},
Object {
"bool": true,
"int": 5859235,
"word": "cuyos",
},
Object {
"bool": false,
"int": 5859264,
"word": "deqamu",
},
Object {
"bool": true,
"int": 5859297,
"word": "howisem",
},
Object {
"bool": false,
"int": 5859598,
"word": "jazotenu",
},
Object {
"bool": true,
"int": 5859631,
"word": "migazoten",
},
Object {
"bool": false,
"int": 5859329,
"word": "bala",
},
Object {
"bool": true,
"int": 5859360,
"word": "firi",
},
Object {
"bool": false,
"int": 5859395,
"word": "guvo",
},
Object {
"bool": true,
"int": 5859426,
"word": "keba",
},
Object {
"bool": false,
"int": 5859205,
"word": "lofe",
},
Object {
"bool": true,
"int": 5859236,
"word": "payus",
},
Object {
"bool": false,
"int": 5859271,
"word": "qicake",
},
Object {
"bool": true,
"int": 5859302,
"word": "tujizum",
},
Object {
"bool": false,
"int": 5859593,
"word": "vemotija",
},
Object {
"bool": true,
"int": 5859624,
"word": "yosahewos",
},
Expand Down

0 comments on commit e67385d

Please sign in to comment.