- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for subslice (0.04 sec)
-
src/bytes/bytes_test.go
} var containsTests = []struct { b, subslice []byte want bool }{ {[]byte("hello"), []byte("hel"), true}, {[]byte("日本語"), []byte("日本"), true}, {[]byte("hello"), []byte("Hello, world"), false}, {[]byte("東京"), []byte("京東"), false}, } func TestContains(t *testing.T) { for _, tt := range containsTests { if got := Contains(tt.b, tt.subslice); got != tt.want {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 UTC 2025 - 62.9K bytes - Viewed (0)