MCPcopy Index your code
hub / github.com/exaloop/codon / par_sum_check

Function par_sum_check

test/python/pyext.py:403–407  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

401 # Codon-specific #
402 ##################
403 def par_sum_check(n):
404 m = 0
405 for i in range(n):
406 m += 3*i + 7
407 return m
408
409 for n in (0, 1, 10, 33, 999, 1237):
410 assert m.par_sum(n) == par_sum_check(n)

Callers 1

test_codon_extensionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_codon_extensionsFunction · 0.68