Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion builtin/builtin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ func TestBuiltin_memory_limits(t *testing.T) {
tests := []struct {
input string
}{
{`repeat("\xc4<\xc4\xc4\xc4",10009999990)`},
{fmt.Sprintf(`repeat("\xc4<\xc4\xc4\xc4",%d)`, math.MaxInt)},
}

for _, test := range tests {
Expand Down
3 changes: 2 additions & 1 deletion expr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"math"
"os"
"reflect"
"strings"
Expand Down Expand Up @@ -1377,7 +1378,7 @@ func TestExpr(t *testing.T) {
},
{
`bitushr(-100, 5)`,
576460752303423484,
int((math.MaxUint - 99) >> 5),
},
{
`"hello"[1:3]`,
Expand Down
2 changes: 1 addition & 1 deletion internal/testify/assert/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestObjectsAreEqualValues(t *testing.T) {
{10.5, 10, false},
// Known limitation inherited from upstream: with equal sizes the actual
// value is converted to the expected type, so 10.5 truncates to 10.
{10, 10.5, true},
{int64(10), 10.5, true},
// The smaller type is converted to the larger one, so overflow
// must not create false positives.
{int(270), uint8(14), false},
Expand Down