MCPcopy Create free account
hub / github.com/Notgnoshi/generative / test_both_context

Method test_both_context

tests/test_production.py:91–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.assertSequenceEqual(result["rhs"], ["c"])
90
91 def test_both_context(self):
92 parser = RuleParser()
93 rule = "l<a>r -> b"
94 result = parser._parse(rule)
95
96 self.assertEqual(result["left_context"], "l")
97 self.assertEqual(result["right_context"], "r")
98
99 def test_context_roll(self):
100 parser = RuleParser()

Callers

nothing calls this directly

Calls 2

_parseMethod · 0.95
RuleParserClass · 0.90

Tested by

no test coverage detected