crdoconnor / xeger

Library to generate random strings from regular expressions.
Other
121 stars 21 forks source link

Seed 0 is treated as "no seed given" #17

Open artamonovkirill opened 3 years ago

artamonovkirill commented 3 years ago

Running

def test_xeger():
    assert Xeger(seed=0).xeger('.{1,8}') == Xeger(seed=0).xeger('.{1,8}')

fails with an assertion error, since seed 0 is treated as "no seed given"