예제 #1
0
def test_int8():
    from numpytests import add1
    from numpy import int8

    assert add1(int8(2), int8(3)) == 6
    assert add1(int8(1), int8(1)) == 3
예제 #2
0
def test_uint32():
    from numpytests import add1
    from numpy import uint32

    assert add1(uint32(2), uint32(3)) == 6
    assert add1(uint32(1), uint32(1)) == 3
예제 #3
0
def test_uint64():
    from numpytests import add1
    from numpy import uint64

    assert add1(uint64(2), uint64(3)) == 6
    assert add1(uint64(1), uint64(1)) == 3
예제 #4
0
def test_uint16():
    from numpytests import add1
    from numpy import uint16

    assert add1(uint16(2), uint16(3)) == 6
    assert add1(uint16(1), uint16(1)) == 3
예제 #5
0
def test_uint8():
    from numpytests import add1
    from numpy import uint8

    assert add1(uint8(2), uint8(3)) == 6
    assert add1(uint8(1), uint8(1)) == 3
예제 #6
0
def test_int64():
    from numpytests import add1
    from numpy import int64

    assert add1(int64(2), int64(3)) == 6
    assert add1(int64(1), int64(1)) == 3
예제 #7
0
def test_int32():
    from numpytests import add1
    from numpy import int32

    assert add1(int32(2), int32(3)) == 6
    assert add1(int32(1), int32(1)) == 3
예제 #8
0
def test_int16():
    from numpytests import add1
    from numpy import int16

    assert add1(int16(2), int16(3)) == 6
    assert add1(int16(1), int16(1)) == 3