예제 #1
0
def test_numpy_aware_eq_identical():
    b = a
    assert models._numpy_aware_eq(a, b)
예제 #2
0
def test_numpy_aware_eq_nparray():
    b = np.arange(3)
    assert not models._numpy_aware_eq(a, b)
예제 #3
0
def test_numpy_aware_eq_tuple_nparrays():
    b = (np.arange(3), np.arange(3))
    assert not models._numpy_aware_eq(a, b)
예제 #4
0
def test_numpy_aware_eq_noniterable():
    b = 1
    assert not models._numpy_aware_eq(a, b)
예제 #5
0
def test_numpy_aware_eq_identical():
    b = a
    assert models._numpy_aware_eq(a, b)
예제 #6
0
def test_numpy_aware_eq_tuple_nparrays():
    b = (np.arange(3), np.arange(3))
    assert not models._numpy_aware_eq(a, b)
예제 #7
0
def test_numpy_aware_eq_nparray():
    b = np.arange(3)
    assert not models._numpy_aware_eq(a, b)
예제 #8
0
def test_numpy_aware_eq_noniterable():
    b = 1
    assert not models._numpy_aware_eq(a, b)