Message221766
Three years later, I do understand 'circular'. Such cut-and-paste whitebox tests tend to simultaneously test too much -- the particular implementation(1) -- and too little -- the actual specification(2).
(1) The test would falsely fail if a string were reordered but still correct.
(2) The test would falsely pass is any of the existing strings were incorrect. Most of the strings have a specification other than the existing string and all can be tested in an order free manner. Hexdigits example:
import string
assert len(set(string.hexdigits)) == 22
for c in string.hexdigits:
assert '0' <= c <= '9' or 'a' <= c <= 'f' or 'A' <= c <= 'F'
I would be willing to push such a patch. I would also be willing to close this now. |
|
Date |
User |
Action |
Args |
2014-06-28 02:02:51 | terry.reedy | set | recipients:
+ terry.reedy, benjamin.peterson, brian.curtin, BreamoreBoy, JoelLuellwitz, Lynne.Qu |
2014-06-28 02:02:51 | terry.reedy | set | messageid: <1403920971.27.0.521790706531.issue11754@psf.upfronthosting.co.za> |
2014-06-28 02:02:51 | terry.reedy | link | issue11754 messages |
2014-06-28 02:02:50 | terry.reedy | create | |
|