Skip to content

Commit

Permalink
Merge 7e380f0 into 9ca2a2e
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalpoetry committed Oct 1, 2020
2 parents 9ca2a2e + 7e380f0 commit abda3f3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/backends/datadog/flush_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ func TestCoerceToNumeric(t *testing.T) {
{"NaN should return 0", math.NaN(), -1},
{"+Inf should return maximum float value", math.Inf(+1), math.MaxFloat64},
{"-Inf should return minimum float value", math.Inf(-1), -math.MaxFloat64},
{"Numeric value should return unchanged", 0, 0},
{"Numeric value should return unchanged", 12_345, 12_345},
{"Numeric value should return unchanged", -12_345, -12_345},
{"Numeric value should return unchanged", math.MaxFloat64, math.MaxFloat64},
{"-Inf should return minimum float value", -math.MaxFloat64, -math.MaxFloat64},
{"Zero value should return unchanged", 0, 0},
{"Positive value within float64 range should return unchanged", 12_345, 12_345},
{"Negative value within float64 should return unchanged", -12_345, -12_345},
{"Maximum float64 value should return unchanged", math.MaxFloat64, math.MaxFloat64},
{"Minimum float64 value should return unchanged", -math.MaxFloat64, -math.MaxFloat64},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit abda3f3

Please sign in to comment.