Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioricali committed Jul 6, 2017
1 parent d107df5 commit d1ee6d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- improved `be.json`
- improved `be.buffer`

### fixed
### Fixed
- now `be.equal` with zero negative return false

## [1.3.1] - 2017-07-04
Expand Down
5 changes: 5 additions & 0 deletions test/mixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ describe('equal', function () {
console.log(result);
assert.equal(result, false);
});
it('number zero and empty string, should be return false', function () {
var result = be.equal(0, '');
console.log(result);
assert.equal(result, false);
});
it('boolean, should be return true', function () {
var result = be.equal(true, true);
console.log(result);
Expand Down

0 comments on commit d1ee6d8

Please sign in to comment.