def test_errors_ymd(): with pytest.raises(TypeError): _k.ymd()
def test_k_methods(): assert _k.ymd(2000, 1, 1) == 0 assert _k.ymd(1970, 1, 1) == -10957 assert _k.dj(0) == 20000101 assert _k.dj(-10957) == 19700101