- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 35 for S1 (0.02 sec)
-
src/internal/fuzz/encoding_test.go
f.Add(string([]rune{unicode.ReplacementChar})) f.Fuzz(func(t *testing.T, s1 string) { b := marshalCorpusFile(s1) t.Logf("marshaled %q:\n%s", s1, b) rs, err := unmarshalCorpusFile(b) if err != nil { t.Fatal(err) } if len(rs) != 1 { t.Fatalf("unmarshaled %d values", len(rs)) } s2 := rs[0].(string) if s2 != s1 { t.Errorf("unmarshaled %q", s2) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 00:20:34 UTC 2024 - 8.2K bytes - Viewed (0) -
src/crypto/subtle/xor_test.go
sizes := []int64{1 << 3, 1 << 7, 1 << 11, 1 << 15} for _, size := range sizes { b.Run(fmt.Sprintf("%dBytes", size), func(b *testing.B) { s0 := data0[:size] s1 := data1[:size] b.SetBytes(int64(size)) for i := 0; i < b.N; i++ { XORBytes(dst, s0, s1) } }) } } func mustPanic(t *testing.T, expected string, f func()) { t.Helper() defer func() { switch msg := recover().(type) { case nil:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:51:19 UTC 2024 - 2.4K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/util/TextUtil.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:37 UTC 2024 - 8.9K bytes - Viewed (0) -
test/typeparam/graph.go
) // _SliceEqual reports whether two slices are equal: the same length and all // elements equal. All floating point NaNs are considered equal. func _SliceEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i] if v1 != v2 { isNaN := func(f Elem) bool { return f != f } if !isNaN(v1) || !isNaN(v2) { return false } } } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 5.7K bytes - Viewed (0) -
src/strings/builder_test.go
b.WriteString("alpha") check(t, &b, "alpha") s1 := b.String() b.WriteString("beta") check(t, &b, "alphabeta") s2 := b.String() b.WriteString("gamma") check(t, &b, "alphabetagamma") s3 := b.String() // Check that subsequent operations didn't change the returned strings. if want := "alpha"; s1 != want { t.Errorf("first String result is now %q; want %q", s1, want) } if want := "alphabeta"; s2 != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 8.1K bytes - Viewed (0) -
src/net/http/routing_index_test.go
// genConcat2 generates the cross product of the strings of g1 concatenated // with those of g2. func genConcat2(g1, g2 generator) generator { return func(collect func(string)) { g1(func(s1 string) { g2(func(s2 string) { collect(s1 + s2) }) }) } } // genConcat generalizes genConcat2 to any number of generators. func genConcat(gs ...generator) generator { if len(gs) == 0 { return genConst("")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 22:14:00 UTC 2024 - 4K bytes - Viewed (0) -
guava/src/com/google/common/collect/TableCollectors.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sat Mar 09 00:21:17 UTC 2024 - 7.3K bytes - Viewed (0) -
src/slices/iter_test.go
} if want := [][]int{{1, 2}, {3, 4}}; !chunkEqual(got, want) { t.Errorf("Chunk iteration did not stop, got %v, want %v", got, want) } } func chunkEqual[Slice ~[]E, E comparable](s1, s2 []Slice) bool { return EqualFunc(s1, s2, Equal[Slice])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 5.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/TraverserUtilTest.java
assertThat(traverser instanceof JarFileTraverser, is(true)); final List<String> list = new ArrayList<String>(); traverser.forEach((ResourceHandler) (path, is) -> list.add(path)); list.sort((s1, s2) -> s1.compareTo(s2)); assertThat(list.size(), is(2)); assertThat(list.get(0), is("junit/textui/ResultPrinter.class")); assertThat(list.get(1), is("junit/textui/TestRunner.class")); }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TableCollectors.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sat Mar 09 00:21:17 UTC 2024 - 7.7K bytes - Viewed (0)