Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cfilby committed Oct 17, 2019
1 parent e9730ab commit 3719177
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions graphql/id_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package graphql

import (
"math"
"testing"

"github.com/stretchr/testify/assert"
Expand All @@ -19,6 +20,16 @@ func TestMarshalID(t *testing.T) {
Expected: "12",
ShouldError: false,
},
{
Name: "int64 max",
Input: math.MaxInt64,
Expected: "9223372036854775807",
},
{
Name: "int64 min",
Input: math.MinInt64,
Expected: "-9223372036854775808",
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 3719177

Please sign in to comment.