MCPcopy Index your code
hub / github.com/google-deepmind/alphageometry / test_orthocenter_translate

Method test_orthocenter_translate

problem_test.py:44–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
60if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

from_txtMethod · 0.45

Tested by

no test coverage detected