Skip to content

Commit

Permalink
test: validSize returns on overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Oct 9, 2024
1 parent b232439 commit 32433bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions validators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ func TestValidSize(t *testing.T) {
c := &converters{}

// Do nothing if the request is too large
require.Equal(t, "a", c.alphaField("a", 1e9))
require.Equal(t, "7", c.numericField(7, 1e9))
require.Equal(t, "b", c.nbsmField("b", 1e9))
require.Equal(t, "c", c.stringField("c", 1e9))
require.Equal(t, "", c.alphaField("a", 1e9))
require.Equal(t, "", c.numericField(7, 1e9))
require.Equal(t, "", c.nbsmField("b", 1e9))
require.Equal(t, "", c.stringField("c", 1e9))
})

t.Run("don't grow", func(t *testing.T) {
Expand Down

0 comments on commit 32433bc

Please sign in to comment.