MCPcopy Index your code
hub / github.com/tinygrad/tinygrad / test_variable_order

Method test_variable_order

test/null/test_helpers.py:119–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117 def test_ints(self): self.assertEqual(30, prod((2, 3, 5)))
118 def test_variable(self): self.assertEqual("(a*12)", prod((Variable("a", 1, 5), 3, 4)).render())
119 def test_variable_order(self): self.assertEqual("(a*12)", prod((3, 4, Variable("a", 1, 5))).render())
120
121class TestRoundUp(unittest.TestCase):
122 def test_round_up(self):

Callers

nothing calls this directly

Calls 3

prodFunction · 0.90
VariableFunction · 0.70
renderMethod · 0.45

Tested by

no test coverage detected