Exemplo n.º 1
0
def test_to_u32_with_small_negative():
    assert to_u32(-17) == 4294967279
Exemplo n.º 2
0
def test_to_u32_with_large_positive():
    assert to_u32(100000) == 100000
Exemplo n.º 3
0
def test_to_u32_with_max_positive():
    assert to_u32(4294967295) == 4294967295
Exemplo n.º 4
0
def test_to_u32_with_another_positive_overflow():
    with pytest.raises(HERAError):
        to_u32(5000000000)
Exemplo n.º 5
0
def test_to_u32_with_small_positive():
    assert to_u32(7) == 7
Exemplo n.º 6
0
def test_to_u32_with_another_overflow():
    with pytest.raises(HERAError):
        to_u32(-3000000000)
Exemplo n.º 7
0
def test_to_u32_with_positive_overflow():
    with pytest.raises(HERAError):
        to_u32(4294967296)
Exemplo n.º 8
0
def test_to_u32_with_overflow():
    with pytest.raises(HERAError):
        to_u32(-2147483649)
Exemplo n.º 9
0
def test_to_u32_with_zero():
    assert to_u32(0) == 0
Exemplo n.º 10
0
def test_to_u32_with_large_negative():
    assert to_u32(-128000) == 4294839296
Exemplo n.º 11
0
def test_to_u32_with_min_negative():
    assert to_u32(-2147483648) == 2147483648
Exemplo n.º 12
0
def test_to_u32_with_max_negative():
    assert to_u32(-1) == 4294967295