test: use indelta

This commit is contained in:
Kevin Franklin Kim 2025-09-29 21:42:17 +02:00
parent 33df52d531
commit 18b7f05728
No known key found for this signature in database

View File

@ -23,7 +23,7 @@ func TestInline(t *testing.T) {
t.Run("read inline float", func(t *testing.T) {
value, ok := keeltest.InlineFloat64(t, 1) // INLINE: 1.5
assert.True(t, ok)
assert.Equal(t, 1.5, value)
assert.InDelta(t, 1.5, value, 0)
})
t.Run("read inline json", func(t *testing.T) {