##// END OF EJS Templates
pypy: fix doctests for pypy optimizations...
Maciej Fijalkowski -
r28717:c5f212c8 default
parent child Browse files
Show More
@@ -3060,7 +3060,8 b' class addset(abstractsmartset):'
3060
3060
3061 iterate unsorted:
3061 iterate unsorted:
3062 >>> rs = addset(xs, ys)
3062 >>> rs = addset(xs, ys)
3063 >>> [x for x in rs] # without _genlist
3063 >>> # (use generator because pypy could call len())
3064 >>> list(x for x in rs) # without _genlist
3064 [0, 3, 2, 5, 4]
3065 [0, 3, 2, 5, 4]
3065 >>> assert not rs._genlist
3066 >>> assert not rs._genlist
3066 >>> len(rs)
3067 >>> len(rs)
@@ -3071,7 +3072,8 b' class addset(abstractsmartset):'
3071
3072
3072 iterate ascending:
3073 iterate ascending:
3073 >>> rs = addset(xs, ys, ascending=True)
3074 >>> rs = addset(xs, ys, ascending=True)
3074 >>> [x for x in rs], [x for x in rs.fastasc()] # without _asclist
3075 >>> # (use generator because pypy could call len())
3076 >>> list(x for x in rs), list(x for x in rs.fastasc()) # without _asclist
3075 ([0, 2, 3, 4, 5], [0, 2, 3, 4, 5])
3077 ([0, 2, 3, 4, 5], [0, 2, 3, 4, 5])
3076 >>> assert not rs._asclist
3078 >>> assert not rs._asclist
3077 >>> len(rs)
3079 >>> len(rs)
@@ -3082,7 +3084,8 b' class addset(abstractsmartset):'
3082
3084
3083 iterate descending:
3085 iterate descending:
3084 >>> rs = addset(xs, ys, ascending=False)
3086 >>> rs = addset(xs, ys, ascending=False)
3085 >>> [x for x in rs], [x for x in rs.fastdesc()] # without _asclist
3087 >>> # (use generator because pypy could call len())
3088 >>> list(x for x in rs), list(x for x in rs.fastdesc()) # without _asclist
3086 ([5, 4, 3, 2, 0], [5, 4, 3, 2, 0])
3089 ([5, 4, 3, 2, 0], [5, 4, 3, 2, 0])
3087 >>> assert not rs._asclist
3090 >>> assert not rs._asclist
3088 >>> len(rs)
3091 >>> len(rs)
General Comments 0
You need to be logged in to leave comments. Login now