Exemplo n.º 1
0
def test_close7():
    x = 0.33333333333333
    y = 1 / 3
    with warnings.catch_warnings():
        assert close(x, y)
Exemplo n.º 2
0
def test_close1():
    x = 0
    y = 1
    with warnings.catch_warnings():
        assert not close(x, y)
Exemplo n.º 3
0
def test_close5():
    x = 0
    y = nan
    with warnings.catch_warnings():
        assert not close(x, y)
Exemplo n.º 4
0
def test_close5():
    x = 0
    y = nan
    with warnings.catch_warnings():
        warnings.simplefilter("ignore")
        assert not close(x, y)
Exemplo n.º 5
0
def test_close7():
    x = 0.33333333333333
    y = 1 / 3
    with warnings.catch_warnings():
        warnings.simplefilter("ignore")
        assert close(x, y)
Exemplo n.º 6
0
def test_close5():
    x = 0
    y = nan
    assert_false(close(x, y))
    assert_false(pyclose(x, y))
Exemplo n.º 7
0
def test_close7():
    x = 0.33333333333333
    y = 1/3
    assert_true(close(x, y))
    assert_true(pyclose(x, y))
Exemplo n.º 8
0
def test_close2():
    x = 0
    y = inf
    assert not close(x, y)
    assert not pyclose(x, y)
Exemplo n.º 9
0
def test_close3():
    x = -inf
    y = inf
    assert not close(x, y)
    assert not pyclose(x, y)
Exemplo n.º 10
0
def test_close8():
    x = inf
    y = inf
    with warnings.catch_warnings():
        assert close(x, y)
Exemplo n.º 11
0
def test_close1():
    x = 0
    y = 1
    assert not close(x, y)
    assert not pyclose(x, y)
Exemplo n.º 12
0
def test_close7():
    x = 0.33333333333333
    y = 1/3
    with warnings.catch_warnings():
        assert close(x, y)
Exemplo n.º 13
0
def test_close6():
    x = 1
    y = 1
    with warnings.catch_warnings():
        assert close(x, y)
Exemplo n.º 14
0
def test_close5():
    x = 0
    y = nan
    with warnings.catch_warnings():
        assert not close(x, y)
Exemplo n.º 15
0
def test_close3():
    x = -inf
    y = inf
    with warnings.catch_warnings():
        assert not close(x, y)
Exemplo n.º 16
0
def test_close4():
    x = inf
    y = nan
    assert not close(x, y)
    assert not pyclose(x, y)
Exemplo n.º 17
0
def test_close4():
    x = inf
    y = nan
    assert_false(close(x, y))
    assert_false(pyclose(x, y))
Exemplo n.º 18
0
def test_close5():
    x = 0
    y = nan
    assert not close(x, y)
    assert not pyclose(x, y)
Exemplo n.º 19
0
def test_close6():
    x = 1
    y = 1
    assert_true(close(x, y))
    assert_true(pyclose(x, y))
Exemplo n.º 20
0
def test_close6():
    x = 1
    y = 1
    assert close(x, y)
    assert pyclose(x, y)
Exemplo n.º 21
0
def test_close8():
    x = inf
    y = inf
    assert_true(close(x, y))
    assert_true(pyclose(x, y))
Exemplo n.º 22
0
def test_close7():
    x = 0.33333333333333
    y = 1 / 3
    assert close(x, y)
    assert pyclose(x, y)
Exemplo n.º 23
0
def test_close6():
    x = 1
    y = 1
    with warnings.catch_warnings():
        warnings.simplefilter("ignore")
        assert close(x, y)
Exemplo n.º 24
0
def test_close8():
    x = inf
    y = inf
    assert close(x, y)
    assert pyclose(x, y)
Exemplo n.º 25
0
def test_close8():
    x = inf
    y = inf
    with warnings.catch_warnings():
        warnings.simplefilter("ignore")
        assert close(x, y)
Exemplo n.º 26
0
def test_close1():
    x = 0
    y = 1
    assert_false(close(x, y))
    assert_false(pyclose(x, y))
Exemplo n.º 27
0
def test_close3():
    x = -inf
    y = inf
    with warnings.catch_warnings():
        assert not close(x, y)
Exemplo n.º 28
0
def test_close2():
    x = 0
    y = inf
    assert_false(close(x, y))
    assert_false(pyclose(x, y))
Exemplo n.º 29
0
def test_close6():
    x = 1
    y = 1
    with warnings.catch_warnings():
        assert close(x, y)
Exemplo n.º 30
0
def test_close3():
    x = -inf
    y = inf
    assert_false(close(x, y))
    assert_false(pyclose(x, y))
Exemplo n.º 31
0
def test_close8():
    x = inf
    y = inf
    with warnings.catch_warnings():
        assert close(x, y)
Exemplo n.º 32
0
def test_close1():
    x = 0
    y = 1
    with warnings.catch_warnings():
        assert not close(x, y)