(self)
| 42 | ) |
| 43 | |
| 44 | def test_orthocenter_translate(self): |
| 45 | txt = 'a b c = triangle a b c; h = on_tline h b a c, on_tline h c a b ? perp a h b c' # pylint: disable=line-too-long |
| 46 | |
| 47 | # Read the txt into pr.Problem object, change h -> d to match |
| 48 | # training data distribution. |
| 49 | p = pr.Problem.from_txt(txt, translate=True) |
| 50 | |
| 51 | # This is fed into the LM, translating from constructive to constrained: |
| 52 | setup_str = p.setup_str_from_problem(ProblemTest.defs) |
| 53 | |
| 54 | self.assertEqual( |
| 55 | setup_str, |
| 56 | '{S} a : ; b : ; c : ; d : T a b c d 00 T a c b d 01 ? T a d b c', |
| 57 | ) |
| 58 | |
| 59 | |
| 60 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected