- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestIndexRandom (0.49 sec)
-
src/cmd/internal/test2json/testdata/framebig.json
{"Action":"run","Test":"TestIndexRandom"} {"Action":"output","Test":"TestIndexRandom","Output":"=== RUN TestIndexRandom\n"} {"Action":"output","Test":"TestIndexRandom","Output":"--- PASS: TestIndexRandom (0.00s)\n"} {"Action":"pass","Test":"TestIndexRandom"} {"Action":"pass","Test":"TestIndexRandom"} {"Action":"output","Test":"TestIndexRandom","Output":"=== PASS TestIndexRandom\n"} {"Action":"run","Test":"TestIndexRune"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 12.2K bytes - Viewed (0) -
src/strings/strings_test.go
} } } func simpleIndex(s, sep string) int { n := len(sep) for i := n; i <= len(s); i++ { if s[i-n:i] == sep { return i - n } } return -1 } func TestIndexRandom(t *testing.T) { const chars = "abcdefghijklmnopqrstuvwxyz0123456789" for times := 0; times < 10; times++ { for strLen := 5 + rand.Intn(5); strLen < 140; strLen += 10 { // Arbitrary s1 := make([]byte, strLen)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0)