This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients BreamoreBoy, JoelLuellwitz, Lynne.Qu, benjamin.peterson, brian.curtin, terry.reedy
Date 2014-06-28.02:02:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403920971.27.0.521790706531.issue11754@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-06-28 02:02:51terry.reedysetrecipients: + terry.reedy, benjamin.peterson, brian.curtin, BreamoreBoy, JoelLuellwitz, Lynne.Qu
2014-06-28 02:02:51terry.reedysetmessageid: <1403920971.27.0.521790706531.issue11754@psf.upfronthosting.co.za>
2014-06-28 02:02:51terry.reedylinkissue11754 messages
2014-06-28 02:02:50terry.reedycreate