MCPcopy
hub / github.com/tinygrad/tinygrad / test_ints

Method test_ints

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

Source from the content-addressed store, hash-verified

115class TestProd(unittest.TestCase):
116 def test_empty(self): self.assertEqual(1, prod(tuple()))
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

Callers

nothing calls this directly

Calls 1

prodFunction · 0.90

Tested by

no test coverage detected