2019-10-31 09:03:22 +07:00
|
|
|
const assert = require('assert');
|
|
|
|
const booler = require('./../index')
|
|
|
|
|
|
|
|
it('booler will be pass it to equal true', () => {
|
|
|
|
assert.equal(true, booler(true));
|
|
|
|
})
|
|
|
|
|
2019-10-31 09:51:04 +07:00
|
|
|
it('booler will be pass it to equal True', () => {
|
|
|
|
assert.equal(true, booler('True'));
|
|
|
|
})
|
|
|
|
|
2019-10-31 09:03:22 +07:00
|
|
|
it(`booler will be pass it to equal 'true'`, () => {
|
|
|
|
assert.equal(true, booler('true'));
|
|
|
|
})
|
|
|
|
|
|
|
|
it(`booler will be pass it to equal 't'`, () => {
|
|
|
|
assert.equal(true, booler('t'));
|
|
|
|
})
|
|
|
|
|
|
|
|
it(`booler will be pass it to equal '1'`, () => {
|
|
|
|
assert.equal(true, booler('1'));
|
|
|
|
})
|
|
|
|
|
|
|
|
it('booler will be pass it to equal 1', () => {
|
|
|
|
assert.equal(true, booler(1));
|
|
|
|
})
|
|
|
|
|
|
|
|
it('booler will be pass it to equal false', () => {
|
|
|
|
assert.equal(false, booler(false));
|
|
|
|
})
|
|
|
|
|
|
|
|
it(`booler will be pass it to equal 'false'`, () => {
|
|
|
|
assert.equal(false, booler('false'));
|
|
|
|
})
|
|
|
|
|
|
|
|
it(`booler will be pass it to equal 'f'`, () => {
|
|
|
|
assert.equal(false, booler('f'));
|
|
|
|
})
|
|
|
|
|
|
|
|
it(`booler will be pass it to equal '0'`, () => {
|
|
|
|
assert.equal(false, booler(0));
|
|
|
|
})
|
|
|
|
|
|
|
|
it('booler will be pass it to equal 0', () => {
|
|
|
|
assert.equal(false, booler(0));
|
|
|
|
})
|