Putting old tests back for
@@ -55,6 +55,10 @@ def test_bitmasking(quality_bitmask, answer):
def test_lightcurve_fold():
"""Test the ``LightCurve.fold()`` method."""
+ lc = LightCurve(time=[1, 2, 3], flux=[1, 1, 1])
+ assert_almost_equal(lc.fold(period=1).time[0], 0)
+ assert_almost_equal(lc.fold(period=1, phase=-0.1).time[0], 0.1)
+
lcf = KeplerLightCurveFile(TABBY_Q8, quality_bitmask=None)
lc = lcf.PDCSAP_FLUX.remove_nans()
fold = lc.fold(period=1)
