isLeapYear
should be a function.
testString: assert(typeof isLeapYear == 'function');
- text: isLeapYear()
should return a boolean.
testString: assert(typeof isLeapYear(2018) == 'boolean');
- text: isLeapYear(2018)
should return false
.
testString: assert.equal(isLeapYear(2018), false);
- text: isLeapYear(2016)
should return true
.
testString: assert.equal(isLeapYear(2016), true);
- text: isLeapYear(2000)
should return true
.
testString: assert.equal(isLeapYear(2000), true);
- text: isLeapYear(1900)
should return false
.
testString: assert.equal(isLeapYear(1900), false);
- text: isLeapYear(1996)
should return true
.
testString: assert.equal(isLeapYear(1996), true);
- text: isLeapYear(1800)
should return false
.
testString: assert.equal(isLeapYear(1800), false);
```