Skip to content

Commit 49360d8

Browse files
committed
Replace EqualWithin with Close
1 parent 2be2c08 commit 49360d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dynamic/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func TestPartition(t *testing.T) {
2020
P, ΔT := power.Partition(schedule, ε)
2121

2222
assert.Equal(P, fixturePartition.P, t)
23-
assert.EqualWithin(ΔT, fixturePartition.ΔT, 1e-15, t)
23+
assert.Close(ΔT, fixturePartition.ΔT, 1e-15, t)
2424
}
2525

2626
func TestProgress(t *testing.T) {

static/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ func TestCompute(t *testing.T) {
1111
C := []float64{0.5460, 0.6304, 0.7326, 0.8550, 1.0000, 1.1711, 1.3734, 1.6067, 1.8737}
1212
power := New(1.0, Q, C)
1313

14-
assert.EqualWithin(power.Compute(358.15), 1.088, 0.001, t)
14+
assert.Close(power.Compute(358.15), 1.088, 0.001, t)
1515
}

0 commit comments

Comments
 (0)