- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testContaines (0.07 sec)
-
src/bytes/bytes_test.go
}{ {[]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 { t.Errorf("Contains(%q, %q) = %v, want %v", tt.b, tt.subslice, got, tt.want) } } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0)