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 anon
Recipients anon, hct, mark.dickinson, meador.inge, pitrou, rhettinger, serhiy.storchaka, tim.peters, vstinner
Date 2013-12-09.17:09:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386608979.83.0.779765603572.issue19915@psf.upfronthosting.co.za>
In-reply-to
Content
Here are some inadequate tests to add to Lib/test/test_long.py



    def test_bits_at(self):
        def bits_at(n, pos, width=1):
            return (n>>pos) & ((1 << width) - 1)
        for n in [123, 7777777, (1<<35)|(1<<30)|(1<<25)]:
            for i in range(50):
                for j in range(20):
                    self.assertEqual(n.bits_at(i, j), bits_at(n, i, j))
History
Date User Action Args
2013-12-09 17:09:39anonsetrecipients: + anon, tim.peters, rhettinger, mark.dickinson, pitrou, vstinner, meador.inge, serhiy.storchaka, hct
2013-12-09 17:09:39anonsetmessageid: <1386608979.83.0.779765603572.issue19915@psf.upfronthosting.co.za>
2013-12-09 17:09:39anonlinkissue19915 messages
2013-12-09 17:09:39anoncreate