Commit 5979962b authored by Jan Mercl's avatar Jan Mercl

ntdfa: Fix 32b systems constant overflow II.

parent daa0f14c
......@@ -203,7 +203,7 @@ func TestSetGet0(t *testing.T) {
func TestSetGet1(t *testing.T) {
const N = 90000
for _, x := range []int{0, -1, 0x55555555, int(0xaaaaaaaa), 314159265} {
for _, x := range []int{0, -1, 0x55555555, 0xaaaaaaa, 314159265} {
r := TreeNew(cmp)
set := r.Set
a := make([]int, N)
......@@ -299,7 +299,7 @@ func BenchmarkGetRnd(b *testing.B) {
func TestSetGet2(t *testing.T) {
const N = 70000
for _, x := range []int{0, -1, 0x55555555, int(0xaaaaaaaa), 314159265} {
for _, x := range []int{0, -1, 0x55555555, 0xaaaaaaa, 314159265} {
r := TreeNew(cmp)
set := r.Set
a := make([]int, N)
......@@ -458,7 +458,7 @@ func TestDelete0(t *testing.T) {
func TestDelete1(t *testing.T) {
const N = 100000
for _, x := range []int{0, -1, 0x55555555, int(0xaaaaaaaa), 314159265} {
for _, x := range []int{0, -1, 0x55555555, 0xaaaaaaa, 314159265} {
r := TreeNew(cmp)
set := r.Set
a := make([]int, N)
......@@ -513,7 +513,7 @@ func BenchmarkDelRnd(b *testing.B) {
func TestDelete2(t *testing.T) {
const N = 80000
for _, x := range []int{0, -1, 0x55555555, int(0xaaaaaaaa), 314159265} {
for _, x := range []int{0, -1, 0x55555555, 0xaaaaaaa, 314159265} {
r := TreeNew(cmp)
set := r.Set
a := make([]int, N)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment