diff --git a/bin/task_bench/main.py b/bin/task_bench/main.py index a6558e03..7dba4ee9 100644 --- a/bin/task_bench/main.py +++ b/bin/task_bench/main.py @@ -529,7 +529,7 @@ def planted_tasks(bench: Bench, mutants: list[Mutant], seed: int, bugs: int) -> return task tasks += [task] if task else [] if not tasks: - return Failure(f"None of the {len(mutants)} mutants the tests kill becomes a bug: each is on a line the head changed, the test it fails doesn't print a message, or, in a Rust file, a `#[cfg(test)] mod name;` of the tree names a file the bench can't find.") + return Failure(f"None of the {len(mutants)} mutants the tests kill becomes a bug: each is on a line the head changed, the test it fails doesn't print a message, or, for a Rust mutant, it stands in a test file or the tree holds a `#[cfg(test)] mod name;` that names no file the bench finds or a string or comment that is never closed.") return Planned(tasks, [] if len(tasks) == bugs else [f"Planted {len(tasks)} of the {bugs} bugs asked for: no other mutant the tests kill becomes one."], {"seed": seed}) diff --git a/bin/task_bench/test_task_bench.py b/bin/task_bench/test_task_bench.py index 199569c7..7498f8b1 100644 --- a/bin/task_bench/test_task_bench.py +++ b/bin/task_bench/test_task_bench.py @@ -338,7 +338,7 @@ class BenchTest(unittest.TestCase): # Passing tests with the bug planted: no message to tell Haiku. (self.repo / "calc_test.go").write_text("exit 0\n") self.commit("Tests that pass with the bug") - self.assertEqual(self.bench(), Failure("None of the 2 mutants the tests kill becomes a bug: each is on a line the head changed, the test it fails doesn't print a message, or, in a Rust file, a `#[cfg(test)] mod name;` of the tree names a file the bench can't find.")) + self.assertEqual(self.bench(), Failure("None of the 2 mutants the tests kill becomes a bug: each is on a line the head changed, the test it fails doesn't print a message, or, for a Rust mutant, it stands in a test file or the tree holds a `#[cfg(test)] mod name;` that names no file the bench finds or a string or comment that is never closed.")) def test_a_run_the_api_refuses_fails_the_bench_and_still_removes_what_it_made(self): self.env["FAKE_REFUSED_FROM"] = "1"