all: fix typos

This commit is contained in:
Jes Cok
2023-07-16 08:47:29 +08:00
committed by Dan Kortschak
parent 1ba2d98ac6
commit bd727a9e14
16 changed files with 23 additions and 23 deletions

View File

@@ -1116,7 +1116,7 @@ func TestBhattacharyya(t *testing.T) {
t.Errorf("Bhattacharyya distance mismatch in case %d. Expected %v, Found %v", i, test.res, resultpq)
}
if math.Abs(resultpq-resultqp) > 1e-10 {
t.Errorf("Bhattacharyya distance is assymmetric in case %d.", i)
t.Errorf("Bhattacharyya distance is asymmetric in case %d.", i)
}
}
// Bhattacharyya should panic if the inputs have different length
@@ -1154,7 +1154,7 @@ func TestHellinger(t *testing.T) {
t.Errorf("Hellinger distance mismatch in case %d. Expected %v, Found %v", i, test.res, resultpq)
}
if math.Abs(resultpq-resultqp) > 1e-10 {
t.Errorf("Hellinger distance is assymmetric in case %d.", i)
t.Errorf("Hellinger distance is asymmetric in case %d.", i)
}
}
if !panics(func() { Hellinger(make([]float64, 2), make([]float64, 3)) }) {