diff --git a/.gitignore b/.gitignore index 397b4a7..3351ce2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.log +node_modules diff --git a/Makefile b/Makefile index 039b075..4006eb2 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,7 @@ -test: +.PHONY: all test clean +all: +test: + mocha test/tests.js -R spec + +clean: diff --git a/test/tests.js b/test/tests.js new file mode 100644 index 0000000..b0c83aa --- /dev/null +++ b/test/tests.js @@ -0,0 +1,13 @@ +require('chai').should(); +var random = require('../src/random'); + +describe('Random', function () { + describe('generate', function () { + it ('should generate random number with Arcsine', function () { + random.arcsine(0, 1).should.be.a('number'); + }); + it ('should generate random number with Beta', function () { + random.arcsine(0.5, 5, 0, 3).should.be.a('number'); + }); + }); +});