Skip to content

Commit

Permalink
Update percentage delta assertion
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Albao <luke.albao@webflow.com>
  • Loading branch information
DorianListens and lukealbao authored Feb 26, 2025
1 parent e61e7b0 commit 8ddc4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestCalculateOwnershipStats(t *testing.T) {
assert.Equal(t, expectedOwner.Owner, result.FilesPerOwner[i].Owner)
assert.Equal(t, expectedOwner.Count, result.FilesPerOwner[i].Count)
// Use InDelta for floating point comparison with a small delta
assert.InDelta(t, expectedOwner.Percentage, result.FilesPerOwner[i].Percentage, 0.01)
assert.InDelta(t, expectedOwner.Percentage, result.FilesPerOwner[i].Percentage, 0.009)
}
})
}
Expand Down

0 comments on commit 8ddc4fe

Please sign in to comment.