Anonymous user
Talk:Range consolidation: Difference between revisions
m
→Python tester: sp.
m (→Python tester: sp.) |
|||
Line 24:
==Python tester==
I wrote a black-box, randomized tester for the Python example. All boundaries are generated as multiples of 0.5.
Each boundary generates three testpoints <tt>x-.25, x, x+.25</tt>, i.e on a finer grid of 0.25. I then find the set of testpoints that are within the original ranges and this should equal the set of these same
<lang python>#%%
from random import randint
|