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

Method test_forward

tests/test_interpreter.py:22–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 self.i = LSystemInterpeter("default", 1.0, 90)
21
22 def test_forward(self):
23 commands = io.StringIO("FG")
24 expected = [LineString([(0, 0, 0), (0, 0, 2)])]
25 tokens = self.i.tokenize(commands)
26 lines = list(self.i.interpret(tokens))
27 self.assertListEqual(lines, expected)
28
29 def test_forward_no_draw(self):
30 commands = io.StringIO("fGF")

Callers

nothing calls this directly

Calls 3

LineStringClass · 0.90
tokenizeMethod · 0.80
interpretMethod · 0.80

Tested by

no test coverage detected