diff --git a/bin/task_bench/test_shipped_features.py b/bin/task_bench/test_shipped_features.py index a0fc4d72..b3b5a82f 100644 --- a/bin/task_bench/test_shipped_features.py +++ b/bin/task_bench/test_shipped_features.py @@ -293,6 +293,14 @@ class ReadShippedTest(ShippedFeaturesCase): self.assertEqual((newest.name, newest.told), ("items 7, 8", "Add `Halve`, which halves a whole number.\n\nMultiply in `Twice`.")) self.assertEqual((newest.before, newest.tip), (self.git("rev-parse", "main~3"), self.git("rev-parse", "main"))) + def test_a_feature_that_landed_by_a_rebase_starts_at_its_own_chunk_whatever_was_fast_forwarded_before_it(self): + self.git("checkout", "--quiet", "main") + self.plan(11) + self.landed(6, "Plan an item", written_then=True) + self.plan() + self.landed(7, "Build it", "Finish item 11 in the plan") + self.assertEqual(self.read().found[0].before, self.git("rev-parse", "main~2")) + def test_an_item_a_commit_title_drops_is_not_shipped(self): self.git("checkout", "--quiet", "main") self.plan(8)