Ticket #13767: 0001-Update-doctests-for-polybori-that-rely-on-randomness.patch

File 0001-Update-doctests-for-polybori-that-rely-on-randomness.patch, 1.2 KB (added by tkluck, 8 years ago)
  • sage/rings/polynomial/pbori.pyx

    # HG changeset patch
    # User Timo Kluck <tkluck@infty.nl>
    # Date 1362059411 -3600
    # Node ID f0df16e7b3033827da0a17ec67f5ce6cae46f2f5
    # Parent  9519a7bb2f424429ef98c756b2f4d0ea2fec8c8f
    #13767: Update doctests with randomness because of boost upgrade to 1.52
    
    diff --git a/sage/rings/polynomial/pbori.pyx b/sage/rings/polynomial/pbori.pyx
    a b  
    77987798        a*b*c*d
    77997799        sage: set_random_seed(1337)
    78007800        sage: random_set((a*b*c*d).lm(),2)
    7801         {{b,c}, {b}}
     7801        {{b}, {c}}
    78027802        sage: random_set((a*b*c*d).lm(),2)
    7803         {{a,c}, {}}
     7803        {{a,c,d}, {c}}
    78047804
    78057805        sage: set_random_seed(1337)
    78067806        sage: random_set((a*b*c*d).lm(),2)
    7807         {{b,c}, {b}}
     7807        {{b}, {c}}
    78087808        sage: random_set((a*b*c*d).lm(),2)
    7809         {{a,c}, {}}
     7809        {{a,c,d}, {c}}
    78107810    """
    78117811    pb_set_random_seed(seed)
    78127812
     
    78237823        a*b*c*d
    78247824        sage: set_random_seed(1337)
    78257825        sage: random_set((a*b*c*d).lm(),10)
    7826         {{a,b,c,d}, {a,b,d}, {a,c}, {a,d}, {a}, {b,c}, {b}, {c,d}, {c}, {}}
     7826        {{a,b,c,d}, {a,b}, {a,c,d}, {a,c}, {b,c,d}, {b,d}, {b}, {c,d}, {c}, {d}}
    78277827    """
    78287828    cdef PBSet r
    78297829    r =  pb_random_set(variables._pbmonom, length)