Skip to content

Commit

Permalink
allow for id_hc and id_surtax to be almost_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHJensen committed Nov 29, 2015
1 parent 90a87ce commit fa48bf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taxcalc/tests/test_calculate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
CUR_PATH = os.path.abspath(os.path.dirname(__file__))
sys.path.append(os.path.join(CUR_PATH, "../../"))
import numpy as np
from numpy.testing import assert_array_equal
from numpy.testing import assert_array_equal, assert_array_almost_equal
import pandas as pd
import tempfile
import pytest
Expand Down Expand Up @@ -326,7 +326,7 @@ def test_ID_hc_vs_surtax():
calc1.calc_all()
calc2.calc_all()

assert_array_equal(calc1.records._combined, calc2.records._combined)
assert_array_almost_equal(calc1.records._combined, calc2.records._combined, decimal=2)


def test_Calculator_create_difference_table():
Expand Down

0 comments on commit fa48bf0

Please sign in to comment.