Skip to content

Commit

Permalink
function/stdlib: "Chunklist" test assumed it was running on a 64-bit …
Browse files Browse the repository at this point in the history
…architecture
  • Loading branch information
zhsj committed Oct 17, 2022
1 parent 8548fbb commit 12a03f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cty/function/stdlib/collection_test.go
Expand Up @@ -2,6 +2,7 @@ package stdlib

import (
"fmt"
"math"
"testing"

"github.com/zclconf/go-cty/cty"
Expand Down Expand Up @@ -285,13 +286,13 @@ func TestChunklist(t *testing.T) {
cty.ListValEmpty(cty.String),
cty.PositiveInfinity,
cty.NilVal,
`invalid size: value must be a whole number, between -9223372036854775808 and 9223372036854775807`,
fmt.Sprintf(`invalid size: value must be a whole number, between %d and %d`, math.MinInt, math.MaxInt),
},
{
cty.ListValEmpty(cty.String),
cty.NumberFloatVal(1.5),
cty.NilVal,
`invalid size: value must be a whole number, between -9223372036854775808 and 9223372036854775807`,
fmt.Sprintf(`invalid size: value must be a whole number, between %d and %d`, math.MinInt, math.MaxInt),
},
}

Expand Down

0 comments on commit 12a03f2

Please sign in to comment.