Answer stability round 1: 1 🔴, 2 🟡 (0 misread); no outcomes file means no mutant, two tests use subTest, and a test's name fits its assertion
This commit is contained in:
@@ -85,6 +85,11 @@ def run(task: int, side: str, number: int, passed: bool, input_: int = 100, turn
|
||||
|
||||
|
||||
class TableTest(unittest.TestCase):
|
||||
def test_escapes_a_bar_in_a_tasks_name_so_its_row_keeps_the_headings_cells(self):
|
||||
rows = table([run(1, "base", 1, True, input_=100, turns=10, seconds=60, reads=3)], {1: "src/pick.rs:7:20: replace || with && in keep"}, "bug")
|
||||
self.assertTrue(rows[2].startswith(r"| 1: src/pick.rs:7:20: replace \|\| with && in keep | base | 1/1 |"))
|
||||
self.assertEqual(rows[2].replace(r"\|", "").count("|"), rows[0].count("|"))
|
||||
|
||||
def test_prints_a_row_per_task_and_side_with_the_pass_count_and_each_median_then_all_tasks_and_the_heads_change(self):
|
||||
results = [
|
||||
run(1, "base", 1, True, input_=100, turns=10, seconds=60, reads=3),
|
||||
|
||||
Reference in New Issue
Block a user