Comparing version 1.0.15 to 1.0.16
{ | ||
"name": "chance", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"main": "chance.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
{ | ||
"name": "chance", | ||
"main": "./chance.js", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Chance - Utility library to generate anything random", | ||
@@ -6,0 +6,0 @@ "homepage": "http://chancejs.com", |
@@ -157,2 +157,13 @@ import test from 'ava' | ||
test('pickset() returns unique values', t => { | ||
let arr = ['a', 'b', 'c', 'd'] | ||
_.times(1000, () => { | ||
let picked = chance.pickset(arr, 4) | ||
t.not(picked.indexOf('a'), -1) | ||
t.not(picked.indexOf('b'), -1) | ||
t.not(picked.indexOf('c'), -1) | ||
t.not(picked.indexOf('d'), -1) | ||
}) | ||
}) | ||
// chance.shuffle() | ||
@@ -159,0 +170,0 @@ test('shuffle() returns an array of the same size', t => { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1277086
11417