Commit graph

175 commits

Author SHA1 Message Date
Christoph Diehl
93d5fec51a Add docstr to random.init 2017-04-22 22:42:54 +03:00
Christoph Diehl
b360ff1456 Namespace changes 2017-04-22 22:17:23 +03:00
Christoph Diehl
34e67a89a9 Namespace changes 2017-04-22 22:02:38 +03:00
Jesse Schwartzentruber
227f6a1958 Performance improvement of random.pop()
This does not do the same array type checks as random.item(), but these
should be standardized throughout the module.
2017-04-20 15:15:13 -04:00
Jesse Schwartzentruber
8e084eb878 Fix typo in random.subset: limit should only be randomized if it is not specified 2017-04-20 15:14:33 -04:00
Jesse Schwartzentruber
b7d4cbd043 Add remaining tests for random functions. 2017-04-20 15:13:55 -04:00
Jesse Schwartzentruber
61b01e0c40 Generate 53-bit floats instead of 32. 2017-04-20 15:12:31 -04:00
Jesse Schwartzentruber
446dcdf1d9 More work on tests for random functions 2017-04-13 13:07:12 -04:00
Christoph Diehl
e927fac479 [colors.js] Add newline 2017-04-13 16:20:58 +03:00
Christoph Diehl
eaa4f436b1 Add utils 2017-04-13 16:20:04 +03:00
Christoph Diehl
539443ede2 Add random to .jshintrc 2017-04-13 16:17:33 +03:00
Christoph Diehl
3a2e88c4b3 Fix inspections 2017-04-13 05:14:02 +03:00
Christoph Diehl
3ac4c7d281 Add network.js 2017-04-13 03:05:57 +03:00
Christoph Diehl
db1db9b1a4 Add types.js 2017-04-13 03:05:17 +03:00
Christoph Diehl
80e1a17cf6 Merge branch 'master' of https://github.com/MozillaSecurity/octo 2017-04-13 00:28:22 +03:00
Christoph Diehl
dbc18ddac6 Add shaders.js 2017-04-13 00:28:12 +03:00
Jesse Schwartzentruber
8b20380b28 Add more random tests.
Use chi-squared goodness of fit tests for random distributions.
2017-04-12 17:03:57 -04:00
Christoph Diehl
a015709892 Add files.js 2017-04-12 23:33:41 +03:00
Christoph Diehl
44fef815d1 Add strings.js 2017-04-12 23:23:15 +03:00
Christoph Diehl
b25df1051a Add arrays.js 2017-04-12 23:16:44 +03:00
Christoph Diehl
c27b0cfc64 Add mime.js 2017-04-12 22:19:45 +03:00
Christoph Diehl
240c062a9a Add units.js 2017-04-12 22:18:23 +03:00
Christoph Diehl
5d7b77016c [text.js] Add language 2017-04-12 22:12:15 +03:00
Christoph Diehl
aab54d634d [text.js] Add charset 2017-04-12 22:11:04 +03:00
Christoph Diehl
b32d4650a6 Add text.js 2017-04-12 21:55:13 +03:00
Christoph Diehl
27f650a874 Add numbers.js 2017-04-12 21:43:55 +03:00
Christoph Diehl
3aa9618082 Add fonts.js 2017-04-12 21:43:30 +03:00
Christoph Diehl
146009da0e Edit Random.pop() 2017-04-12 18:24:44 +03:00
Christoph Diehl
30a9c59613 Merge pull request #8 from pyoor/master
Add Random.pop() and placeholder for unit tests
2017-04-12 17:18:04 +02:00
pyoor
78e753a3e7 Add placeholder for Random.pop Qunit test 2017-04-12 10:41:13 -04:00
pyoor
05ad767b05 Added Random.pop() 2017-04-12 10:40:50 -04:00
Jesse Schwartzentruber
5dbe5b7fa6 More random.js tests and fix an issue in random.float() 2017-04-11 17:43:09 -04:00
Jesse Schwartzentruber
1f62911e9e Move badges 2017-04-10 14:19:24 -04:00
Jesse Schwartzentruber
5204516dee Update README with test structure. 2017-04-10 14:14:01 -04:00
Jesse Schwartzentruber
a9dd31aed2 Enable Firefox in Karma config for Travis CI 2017-04-10 14:03:05 -04:00
Jesse Schwartzentruber
1f48bd5953 Update Travis CI environment to trusty so we get a recent chromium. 2017-04-10 13:59:24 -04:00
Jesse Schwartzentruber
36c6bb5b08 Add coveralls badge 2017-04-10 13:54:02 -04:00
Jesse Schwartzentruber
b3c7ecbe2f Switch from qunit (node) and slimerjs to karma which supports running
qunit tests in firefox and chrome.

Maintaining code to work in node for testing only will be error-prone.
2017-04-10 13:49:32 -04:00
Jesse Schwartzentruber
46c89ee886 Update .gitignore:
- remove python stuff
- remove duplicate templates
- add nodejs template
2017-04-10 13:47:35 -04:00
Jesse Schwartzentruber
91f0cbf6c4 Fix some uses of random.index instead of random.item 2017-04-10 13:37:32 -04:00
Jesse Schwartzentruber
bdeabbbbd4 Change a bunch of uses of var to let 2017-04-10 13:36:38 -04:00
Christoph Diehl
db1997c4ea Update README.md 2017-04-07 17:08:49 +02:00
Christoph Diehl
4a1ed5d176 Add temporary unit-test functions for random.js 2017-04-07 17:06:59 +02:00
Christoph Diehl
671a9a9fe4 Rename random.some to random.subset 2017-04-07 16:59:43 +02:00
Christoph Diehl
ba5f56cd0b Rename random.index to random.item 2017-04-07 16:59:10 +02:00
Christoph Diehl
e03a4b431e Update README.md 2017-04-07 16:21:18 +02:00
Christoph Diehl
fd64296c59 Update README.md 2017-04-07 16:19:31 +02:00
Christoph Diehl
f4e934b263 Merge branch 'master' of https://github.com/MozillaSecurity/octo 2017-04-07 16:17:05 +02:00
Christoph Diehl
de742a7fc7 Add console logger 2017-04-07 16:16:59 +02:00
Jesse Schwartzentruber
ac70f55523 Only run tests for master branch. 2017-04-07 15:56:45 +02:00