@@ -0,0 +1,991 @@
+from __future__ import division%0A%0Afrom nose.tools import assert_false, assert_true%0A%0Afrom numpy import inf, nan%0A%0Afrom dit.math.equal import allclose, close__python as close%0A%0Adef test_close1():%0A    x = 0%0A    y = 1%0A    assert_false(close(x, y))%0A%0Adef test_close2():%0A    x = 0%0A    y = inf%0A    assert_false(close(x, y))%0A%0Adef test_close3():%0A    x = -inf%0A    y = inf%0A    assert_false(close(x, y))%0A%0Adef test_close4():%0A    x = inf%0A    y = nan%0A    assert_false(close(x, y))%0A%0Adef test_close5():%0A    x = 0%0A    y = nan%0A    assert_false(close(x, y))%0A%0Adef test_close6():%0A    x = 1%0A    y = 1%0A    assert_true(close(x, y))%0A%0Adef test_close7():%0A    x = 0.33333333333333%0A    y = 1/3%0A    assert_true(close(x, y))%0A%0Adef test_close8():%0A    x = inf%0A    y = inf%0A    assert_true(close(x, y))%0A%0Adef test_allclose1():%0A    x = %5B0, 0, -inf, inf, 0%5D%0A    y = %5B1, inf, inf, nan, nan%5D%0A    assert_false(allclose(x, y))%0A%0Adef test_allclose2():%0A    x = %5B1, 0.333333333333333, inf%5D%0A    y = %5B1, 1/3, inf%5D%0A    assert_true(allclose(x, y))

add some close and allclose tests