From 32d5a50e8c3ce030405da76b807ddd50f96ae20c Mon Sep 17 00:00:00 2001 From: Amit Lavon Date: Thu, 13 Jun 2024 17:44:41 +0300 Subject: [PATCH] Relive accuracy requirement in mash test --- mash/mash_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mash/mash_test.go b/mash/mash_test.go index f6eae75..fb23648 100644 --- a/mash/mash_test.go +++ b/mash/mash_test.go @@ -44,7 +44,7 @@ func TestDistance(t *testing.T) { d := Distance(Sequences(10000, 21, seq1), Sequences(10000, 21, seq2), 21) dif := math.Abs(d - 0.05) - if dif > 0.0001 { + if dif > 0.001 { t.Fatalf("Distance(...)=%v, want %v", d, 0.05) } }