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

Add a convenience function for floating-point comparisons #1441

Merged
merged 16 commits into from
Mar 15, 2016

Commits on Mar 7, 2016

  1. Configuration menu
    Copy the full SHA
    6f5e1e3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dd28e28 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2016

  1. Use the plus/minus unicode symbol in the repr string.

    This was a challenge because it had to work in python2 and python3,
    which have almost opposite unicode models, and I couldn't use the six
    library.  I'm also not sure the solution I found would work in python3
    before python3.3, because I use the u'' string prefix which I think was
    initially not part of python3.
    kalekundert committed Mar 8, 2016
    Configuration menu
    Copy the full SHA
    bf97d5b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b8a8382 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5dab095 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4d0f066 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c9c73b8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6a90292 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7d155bd View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2016

  1. Properly handle inf, nan, and built-in numeric types.

    This commit also:
    
    - Dramatically increases the number of unit tests , mostly by borrowing
      from the standard  library's unit tests for math.isclose().
    
    - Refactors approx() into two classes, one of which handles comparing
      individual numbers (ApproxNonIterable) and another which uses the
      first to compare individual numbers or sequences of numbers.
    kalekundert committed Mar 11, 2016
    Configuration menu
    Copy the full SHA
    42a7e04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0784480 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2016

  1. Configuration menu
    Copy the full SHA
    916c0a8 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2016

  1. Configuration menu
    Copy the full SHA
    8612654 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2016

  1. Configuration menu
    Copy the full SHA
    9e7206a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0dcc862 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5ceee08 View commit details
    Browse the repository at this point in the history