mikejs/name_tools — Issue #1: test failures?
Author: achiang
Created: 2012-01-05 17:31:05+00:00
State: open

On debian, using python 2.6 and python 2.7, it looks like the floating point / rounding issues might be fixed so we should no longer expect the values that are listed in the test file.

What platform/python version did you get to the wonky floating point values?

I can fix up the test file pretty easily and send you a pull request if you think this is the right thing to do, unless you actually do test on a platform where you might see those values.

Please let me know.

**********************************************************************
File "README.rst", line 64, in README.rst
Failed example:
name_tools.match('Bob Dole', 'Dole, Bob')
Expected:
0.97999999999999998
Got:
0.98
**********************************************************************
File "README.rst", line 66, in README.rst
Failed example:
name_tools.match("Mr. X", "X")
Expected:
0.94999999999999996
Got:
0.95
**********************************************************************
File "README.rst", line 68, in README.rst
Failed example:
name_tools.match('Jeff Tweedy', 'J Tweedy')
Expected:
0.90000000000000002
Got:
0.9
**********************************************************************
File "README.rst", line 70, in README.rst
Failed example:
name_tools.match('Ferris Bueller', 'Bueller')
Expected:
0.80000000000000004
Got:
0.8
**********************************************************************
1 items had failures:
4 of 14 in README.rst