(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestPseudoRandom(t *testing.T) { |
| 27 | t.Parallel() |
| 28 | |
| 29 | a := assertions.New(t) |
| 30 | a.So(Bytes(10), assertions.ShouldHaveLength, 10) |
| 31 | |
| 32 | a.So(Int63n(10), assertions.ShouldBeGreaterThanOrEqualTo, 0) |
| 33 | a.So(Int63n(10), assertions.ShouldBeLessThan, 10) |
| 34 | |
| 35 | a.So(String(10), assertions.ShouldHaveLength, 10) |
| 36 | } |
| 37 | |
| 38 | func BenchmarkBytes(b *testing.B) { |
| 39 | for i := 0; i < b.N; i++ { |