Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exponential Regression Test Failing #145

Open
mjhasbach opened this issue Apr 18, 2015 · 1 comment
Open

Exponential Regression Test Failing #145

mjhasbach opened this issue Apr 18, 2015 · 1 comment

Comments

@mjhasbach
Copy link
Contributor

x 1 of 134 tests failed:

  1) numbers should return a function to calculate the exponential regression of an array of numbers:
     AssertionError: 0.8491729985314138 == 0.8491729985314136
      at Context.<anonymous> (D:\Projects\Programming\Github\numbers.js\test\statistic.test.js:108:12)
      at Test.Runnable.run (D:\Projects\Programming\Github\numbers.js\node_modules\mocha\lib\runnable.js:196:15)
      at Runner.runTest (D:\Projects\Programming\Github\numbers.js\node_modules\mocha\lib\runner.js:344:10)
      at D:\Projects\Programming\Github\numbers.js\node_modules\mocha\lib\runner.js:390:12
      at next (D:\Projects\Programming\Github\numbers.js\node_modules\mocha\lib\runner.js:270:14)
      at D:\Projects\Programming\Github\numbers.js\node_modules\mocha\lib\runner.js:279:7
      at next (D:\Projects\Programming\Github\numbers.js\node_modules\mocha\lib\runner.js:227:23)
      at Immediate._onImmediate (D:\Projects\Programming\Github\numbers.js\node_modules\mocha\lib\runner.js:247:5)
      at processImmediate [as _immediateCallback] (timers.js:358:17)
@sjkaliski
Copy link
Member

Hey @mjhasbach I received this error as well on my local (a few tests w/in stats failed actually) but Travis is still reporting all green: https://travis-ci.org/numbers/numbers.js

There's an acceptable "error bound" for operations in numbers, numbers.EPSILON = 0.001. Given that this mismatch is within that range, it's ok. Need to update the tests to accommodate for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants