Skip to content

Commit

Permalink
Merge pull request #4 from mearns/fix-unit-tests
Browse files Browse the repository at this point in the history
Fix a broken unit test (#3)
  • Loading branch information
gyllstromk authored Feb 8, 2020
2 parents 9d5367b + 9e36d35 commit 42d93f3
Show file tree
Hide file tree
Showing 2 changed files with 333 additions and 1 deletion.
332 changes: 332 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion xrange.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function () {

var XRange = function (start, finish, by) {
this.length = Math.ceil((finish - start) / by);
this.length = Math.abs(Math.ceil((finish - start) / by));

this.map = function (callback) {
/**
Expand Down

0 comments on commit 42d93f3

Please sign in to comment.