Skip to content

Commit

Permalink
form: fix tests with new bboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Dec 22, 2024
1 parent 939c2ae commit 8818f49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/slider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func TestSliderChange(t *testing.T) {
sr.SystemEvents().MouseButton(events.MouseUp, events.Left, image.Pt(200, 20), 0)
}, func() {
assert.Equal(t, 1, n)
tolassert.Equal(t, 0.5756579, value)
tolassert.Equal(t, 0.61513156, value)
})
}

Expand All @@ -134,7 +134,7 @@ func TestSliderChangeClick(t *testing.T) {
sr.SystemEvents().MouseButton(events.MouseUp, events.Left, image.Pt(200, 20), 0)
}, func() {
assert.Equal(t, 1, n)
tolassert.Equal(t, 0.5756579, value)
tolassert.Equal(t, 0.61513156, value)
})
}

Expand All @@ -157,6 +157,6 @@ func TestSliderInput(t *testing.T) {
sr.SystemEvents().MouseButton(events.MouseUp, events.Left, image.Pt(200, 20), 0)
}, func() {
tolassert.EqualTol(t, 5, float32(n), 4)
tolassert.Equal(t, 0.5756579, value)
tolassert.Equal(t, 0.61513156, value)
})
}

0 comments on commit 8818f49

Please sign in to comment.