MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / test_orthocenter_should_fail

Method test_orthocenter_should_fail

ddar_test.py:33–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 cls.rules = pr.Theorem.from_txt_file('rules.txt', to_dict=True)
32
33 def test_orthocenter_should_fail(self):
34 txt = 'a b c = triangle a b c; d = on_tline d b a c, on_tline d c a b ? perp a d b c' # pylint: disable=line-too-long
35 p = pr.Problem.from_txt(txt)
36 g, _ = gh.Graph.build_problem(p, DDARTest.defs)
37
38 ddar.solve(g, DDARTest.rules, p, max_level=1000)
39 goal_args = g.names2nodes(p.goal.args)
40 self.assertFalse(g.check(p.goal.name, goal_args))
41
42 def test_orthocenter_aux_should_succeed(self):
43 txt = 'a b c = triangle a b c; d = on_tline d b a c, on_tline d c a b; e = on_line e a c, on_line e b d ? perp a d b c' # pylint: disable=line-too-long

Callers

nothing calls this directly

Calls 4

build_problemMethod · 0.80
names2nodesMethod · 0.80
checkMethod · 0.80
from_txtMethod · 0.45

Tested by

no test coverage detected