Ground the judge's quote with markdown emphasis and whitespace ignored

This commit is contained in:
2026-10-01 21:54:58 +02:00
parent 2a09693098
commit 3f5f6de197
3 changed files with 11 additions and 2 deletions
+4
View File
@@ -104,6 +104,10 @@ class Grounded(unittest.TestCase):
self.assertFalse(judge.grounded(verdict("invented"), "the transcript"))
self.assertFalse(judge.grounded(verdict(""), "the transcript"))
self.assertFalse(judge.grounded(verdict(" "), "the transcript"))
transcript = "done.\n\n**Your step:**\n```\n./run.sh\n```\nRun it."
self.assertTrue(judge.grounded(verdict("Your step:\n```\n./run.sh\n```\nRun it."), transcript))
self.assertTrue(judge.grounded(verdict("Your step: ``` ./run.sh ``` Run it."), transcript))
self.assertFalse(judge.grounded(verdict("**"), transcript))
class Verdict(unittest.TestCase):