Example #1
0
def test_eq_neq():
    assert LIGOTimeGPS(1) == LIGOTimeGPS(1)
    assert LIGOTimeGPS(1) != LIGOTimeGPS(2)
    assert (
        LIGOTimeGPS(123456789.123456789) == LIGOTimeGPS(123456789.123456789))
Example #2
0
def test_ns():
    n = LIGOTimeGPS(12345, 67890).ns()
    assert isinstance(n, Integral)
    assert n == 12345000067890