Skip to content

Commit

Permalink
Re-enabled the None value generating
Browse files Browse the repository at this point in the history
  • Loading branch information
Xin Dong committed Apr 24, 2019
1 parent 51fa862 commit 0b6ff9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/correctness/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ def random_id_value():
def random_value():
r = global_prng.random()
while True:
# if (r < 0.1) and generator_options.test_nulls:
# val = None
if (r < 0.2):
if (r < 0.1) and generator_options.test_nulls:
val = None
elif (r < 0.2):
val = random_float()
elif (r < 0.4):
val = random_string(global_prng.randint(1, 8))
Expand Down

0 comments on commit 0b6ff9c

Please sign in to comment.