Make test work on 32 bit Fixes #7: TestPanicOn32BitUintOverflow did not declare max as uint64
diff --git a/properties_test.go b/properties_test.go index b01dbef..dc74385 100644 --- a/properties_test.go +++ b/properties_test.go
@@ -808,11 +808,11 @@ func (s *TestSuite) TestPanicOn32BitUintOverflow(c *C) { is32Bit = true - var max = math.MaxUint32 + 1 + var max uint64 = math.MaxUint32 + 1 input := fmt.Sprintf("max=%d", max) p, err := parse(input) c.Assert(err, IsNil) - c.Assert(p.MustGetUint64("max"), Equals, uint64(max)) + c.Assert(p.MustGetUint64("max"), Equals, max) c.Assert(func() { p.MustGetUint("max") }, PanicMatches, ".* out of range") }