Skip to content

Commit

Permalink
Increase expected standard deviation size
Browse files Browse the repository at this point in the history
    * Update .gitignore

Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed May 6, 2024
1 parent 78caef4 commit a737397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ doc/pyvenv.cfg
pyvenv.cfg

# Various junk and temp files
.DS_Store
*.DS_Store
*~
.*.sw[po]
.build
Expand Down
5 changes: 3 additions & 2 deletions tests/test_halohash.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ def check_results(
for exp, res in zip(expected, results):
assert exp[key1] == res[key1]
expected_mean_hamming_distance = exp['mean hamming distance']
exp_min = expected_mean_hamming_distance - exp['standard deviation']
exp_max = expected_mean_hamming_distance + exp['standard deviation']
expected_standard_deviation = exp['standard deviation'] * 1.75
exp_min = expected_mean_hamming_distance - expected_standard_deviation
exp_max = expected_mean_hamming_distance + expected_standard_deviation
assert exp_min <= res['mean hamming distance']
assert res['mean hamming distance'] <= exp_max

Expand Down

0 comments on commit a737397

Please sign in to comment.