Answer stability round 1: 0 🔴, 3 🟡 (0 misread); mutmut's copy keeps a link to a folder, the README place waits for item 300, and CRLF files are item 530
This commit is contained in:
@@ -306,7 +306,7 @@ class BenchTest(unittest.TestCase):
|
||||
self.assertEqual(report[0], f"task-bench: base {self.head[:12]}, head {self.head[:12]}. 1 bug, each run 1 time at each side by claude-haiku-5-5 in Claude Code 2.1.330.")
|
||||
self.assertEqual(report[4:6], ["| 1: calc.go:5:11 ARITHMETIC_BASE | base | 1/1 | 40 | 9000 | 52000 | 800 | 3 | 61.5 | 1 |", "| 1: calc.go:5:11 ARITHMETIC_BASE | head | 1/1 | 40 | 9000 | 52000 | 800 | 3 | 61.5 | 1 |"])
|
||||
|
||||
def test_fails_where_the_places_name_no_go_file_of_the_base(self):
|
||||
def test_fails_where_the_places_name_no_go_or_python_file_of_the_base(self):
|
||||
with contextlib.redirect_stderr(io.StringIO()):
|
||||
found = main.bench({**self.given, "--base": "main"}, self.env, lambda home: "- `gone.go:1` `Gone`: removed\n- `README.md:1` `Calc`: thin\n", self.home)
|
||||
self.assertEqual(found, Failure("The places the seats found hard don't name any Go or Python file that the base holds, so there is nowhere to plant a bug."))
|
||||
@@ -380,7 +380,7 @@ class BenchTest(unittest.TestCase):
|
||||
# Tests that catch both mutants, at a head benched against itself, where each mutant's line stands.
|
||||
(self.repo / "calc_test.go").write_text(TESTS.replace("calc.go &&", "calc.go && grep -q '2 \\* a' calc.go &&"))
|
||||
self.commit("Tests that catch Twice")
|
||||
# The seed draws from the mutants in the order of their lines.
|
||||
# `drawn` sorts the mutants by path and line before the seed draws, so these stand in for the real ones.
|
||||
mutants = [Mutant("calc.go", line, "", (), ()) for line in (5, 9)]
|
||||
for seed in (1, 2, 3, 4):
|
||||
report = self.bench(**{"--base": "HEAD", "--bugs": "1", "--runs": "1", "--seed": str(seed)})
|
||||
|
||||
Reference in New Issue
Block a user