Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testifylint v1.3.0 fixes #3103

Merged
merged 5 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
Co-authored-by: Roman Dmytrenko <rdmytrenko@gmail.com>
  • Loading branch information
StevenACoffman and erka authored May 27, 2024
commit 7dddf3b52f61ce0262d112065a06ffa4b1ee2d18
8 changes: 4 additions & 4 deletions codegen/testserver/followschema/interfaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ func TestInterfaces(t *testing.T) {
`, &resp)

require.Len(t, resp.Shapes, 2)
require.InEpsilon(t, float64(-1), resp.Shapes[0].Coordinates.X, 0.02)
require.InEpsilon(t, float64(0), resp.Shapes[0].Coordinates.Y, 0.02)
require.InEpsilon(t, float64(1), resp.Shapes[1].Coordinates.X, 0.02)
require.InEpsilon(t, float64(1), resp.Shapes[1].Coordinates.Y, 0.02)
require.InDelta(t, float64(-1), resp.Shapes[0].Coordinates.X, 0.02)
require.InDelta(t, float64(0), resp.Shapes[0].Coordinates.Y, 0.02)
require.InDelta(t, float64(1), resp.Shapes[1].Coordinates.X, 0.02)
require.InDelta(t, float64(1), resp.Shapes[1].Coordinates.Y, 0.02)
})

t.Run("fragment on interface must return merged fields", func(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions codegen/testserver/singlefile/interfaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ func TestInterfaces(t *testing.T) {
`, &resp)

require.Len(t, resp.Shapes, 2)
require.InEpsilon(t, float64(-1), resp.Shapes[0].Coordinates.X, 0.02)
require.InEpsilon(t, float64(0), resp.Shapes[0].Coordinates.Y, 0.02)
require.InEpsilon(t, float64(1), resp.Shapes[1].Coordinates.X, 0.02)
require.InEpsilon(t, float64(1), resp.Shapes[1].Coordinates.Y, 0.02)
require.InDelta(t, float64(-1), resp.Shapes[0].Coordinates.X, 0.02)
require.InDelta(t, float64(0), resp.Shapes[0].Coordinates.Y, 0.02)
require.InDelta(t, float64(1), resp.Shapes[1].Coordinates.X, 0.02)
require.InDelta(t, float64(1), resp.Shapes[1].Coordinates.Y, 0.02)
})

t.Run("fragment on interface must return merged fields", func(t *testing.T) {
Expand Down