Exemple #1
0
def test_clocks_unequal():
    """Test clocks_unequal function used in LRB paper."""

    point_1 = Point(1.0, 1.0)
    point_2 = Point(0.0, 0.0)
    assert point_1.clocks_unequal(point_2)

    point_1 = Point(1.0, 1.0, 1.0, 1.0)
    point_2 = Point(0.0, 0.0, 0.0, 0.0)
    assert point_1.clocks_unequal(point_2)

    point_1 = Point(0.0, 1.000000000000001)
    point_2 = Point(0.0, 0.000000000000001)
    assert point_1.clocks_unequal(point_2)