Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for S1 (0.02 sec)

  1. 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)
  2. 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)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/util/TextUtil.java

                    builder.append('\n');
                }
            }
    
            return builder.toString();
        }
    
        public static String shorterOf(String s1, String s2) {
            logDeprecation();
            if (s2.length() >= s1.length()) {
                return s1;
            } else {
                return s2;
            }
        }
    
        /**
         * Same behavior as Groovy minus operator between Strings
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. guava/src/com/google/common/collect/TableCollectors.java

                state.put(
                    rowFunction.apply(input),
                    columnFunction.apply(input),
                    valueFunction.apply(input),
                    mergeFunction),
            (s1, s2) -> s1.combine(s2, mergeFunction),
            state -> state.toTable());
      }
    
      static <
              T extends @Nullable Object,
              R extends @Nullable Object,
              C extends @Nullable Object,
              V,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. android/guava/src/com/google/common/collect/TableCollectors.java

                state.put(
                    rowFunction.apply(input),
                    columnFunction.apply(input),
                    valueFunction.apply(input),
                    mergeFunction),
            (s1, s2) -> s1.combine(s2, mergeFunction),
            state -> state.toTable());
      }
    
      static <
              T extends @Nullable Object,
              R extends @Nullable Object,
              C extends @Nullable Object,
              V,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top