MCPcopy Create free account
hub / github.com/ElementsProject/elements / test

Method test

src/minisketch/tests/pyminisketch.py:173–176  ·  view source on GitHub ↗

Run tests.

(self)

Source from the content-addressed store, hash-verified

171 self.assertEqual(xyi, gf.mul(xi, yi)) # (1/x)*(1/y) == 1/(x*y)
172
173 def test(self):
174 """Run tests."""
175 for field_size in range(2, 65):
176 self.field_size_test(field_size)
177
178# The operations below operate on polynomials over GF(2^field_size), represented as lists of
179# integers:

Callers

nothing calls this directly

Calls 1

field_size_testMethod · 0.95

Tested by

no test coverage detected