Skip to content

Commit

Permalink
fix: remove unnecessary conversions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mojixcoder committed Dec 24, 2024
1 parent 9cf8ad0 commit 1949058
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions h3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,15 +511,15 @@ func TestHexagonEdgeLengthKm(t *testing.T) {
t.Parallel()
t.Run("min resolution", func(t *testing.T) {
t.Parallel()
assertEqual(t, float64(1281.256011), HexagonEdgeLengthAvgKm(0))
assertEqual(t, 1281.256011, HexagonEdgeLengthAvgKm(0))
})
t.Run("max resolution", func(t *testing.T) {
t.Parallel()
assertEqual(t, float64(0.000584169), HexagonEdgeLengthAvgKm(15))
assertEqual(t, 0.000584169, HexagonEdgeLengthAvgKm(15))
})
t.Run("mid resolution", func(t *testing.T) {
t.Parallel()
assertEqual(t, float64(0.53141401), HexagonEdgeLengthAvgKm(8))
assertEqual(t, 0.53141401, HexagonEdgeLengthAvgKm(8))
})
}

Expand Down

0 comments on commit 1949058

Please sign in to comment.