Files
30-seconds-of-code/test/inRange/inRange.test.js
Angelos Chalaris 9217979f80 Updated testing with proper indentation
Uses two spaces instead of hard tabs.
2018-01-24 17:53:36 +02:00

17 lines
820 B
JavaScript

const test = require('tape');
const inRange = require('./inRange.js');
test('Testing inRange', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof inRange === 'function', 'inRange is a Function');
t.equal(inRange(3, 2, 5), true, "The given number falls within the given range");
t.equal(inRange(3, 4), true, "The given number falls within the given range");
t.equal(inRange(2, 3, 5), false, "The given number does not falls within the given range");
t.equal(inRange(3, 2), false, "The given number does not falls within the given range");
//t.deepEqual(inRange(args..), 'Expected');
//t.equal(inRange(args..), 'Expected');
//t.false(inRange(args..), 'Expected');
//t.throws(inRange(args..), 'Expected');
t.end();
});