Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a77d5b6

Browse files
committed
minor typos
1 parent 892bcd5 commit a77d5b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cryptorand/errors_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ func TestRandError(t *testing.T) {
5454
require.ErrorIs(t, err, io.ErrShortBuffer, "expected Int error")
5555
})
5656

57-
t.Run("Intn", func(t *testing.T) {
57+
t.Run("Intn_32bit", func(t *testing.T) {
5858
_, err := cryptorand.Intn(100)
5959
require.ErrorIs(t, err, io.ErrShortBuffer, "expected Intn error")
6060
})
6161

62-
t.Run("Intn", func(t *testing.T) {
63-
_, err := cryptorand.Intn(int(1 << 32))
62+
t.Run("Intn_64bit", func(t *testing.T) {
63+
_, err := cryptorand.Intn(int(1 << 35))
6464
require.ErrorIs(t, err, io.ErrShortBuffer, "expected Intn error")
6565
})
6666

@@ -81,6 +81,6 @@ func TestRandError(t *testing.T) {
8181

8282
t.Run("StringCharset", func(t *testing.T) {
8383
_, err := cryptorand.HexString(10)
84-
require.ErrorIs(t, err, io.ErrShortBuffer, "expected Bool error")
84+
require.ErrorIs(t, err, io.ErrShortBuffer, "expected HexString error")
8585
})
8686
}

0 commit comments

Comments
 (0)