Ejemplo n.º 1
0
 it('should select a single item from the(list); (not as an array)', (done) => {
    lcg_rnd._fixRandomValue(0.7);
    e.run().should.equal('C');
    done();
 });
Ejemplo n.º 2
0
 it('should return the value when it is run', (done) => {
    lcg_rnd._fixRandomValue(1);
    var cResult = c.run();
    cResult.should.equal(6);
    done();
 });
Ejemplo n.º 3
0
 it('should return the maximum on a random 1', (done) => {
    lcg_rnd._fixRandomValue(1);
    var r = c.run();
    r.should.equal(1.25);
    done();
 });
Ejemplo n.º 4
0
 it('should return the mid value on a random .5', (done) => {
    lcg_rnd._fixRandomValue(.5);
    var r = c.run();
    r.should.equal(0.5 + (1.25-0.5)/2);
    done();
 });
Ejemplo n.º 5
0
 it('should return the minimum on a random 0', (done) => {
    lcg_rnd._fixRandomValue(0);
    var r = c.run();
    r.should.equal(0.5);
    done();
 });