Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testConstant (0.18 sec)

  1. android/guava-tests/test/com/google/common/base/FunctionsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testForPredicateSerializable() {
        checkCanReserialize(Functions.forPredicate(Predicates.equalTo(5)));
      }
    
      public void testConstant() {
        Function<@Nullable Object, Object> f = Functions.<Object>constant("correct");
        assertEquals("correct", f.apply(new Object()));
        assertEquals("correct", f.apply(null));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 16K bytes
    - Viewed (0)
  2. pkg/config/analysis/analyzers/util/find_errorline_utils_test.go

    	test2, err2 := ErrorLine(r, "{.metadata.fake}")
    	g.Expect(test1).To(Equal(1))
    	g.Expect(err1).To(Equal(true))
    	g.Expect(test2).To(Equal(0))
    	g.Expect(err2).To(Equal(false))
    }
    
    func TestConstants(t *testing.T) {
    	g := NewWithT(t)
    
    	constantsPath := []string{
    		fmt.Sprintf(DestinationHost, "test", 0, 0),
    		fmt.Sprintf(MirrorHost, 0),
    		fmt.Sprintf(VSGateway, 0),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. src/unicode/utf16/utf16_test.go

    package utf16_test
    
    import (
    	"internal/testenv"
    	"reflect"
    	"testing"
    	"unicode"
    	. "unicode/utf16"
    )
    
    // Validate the constants redefined from unicode.
    func TestConstants(t *testing.T) {
    	if MaxRune != unicode.MaxRune {
    		t.Errorf("utf16.maxRune is wrong: %x should be %x", MaxRune, unicode.MaxRune)
    	}
    	if ReplacementChar != unicode.ReplacementChar {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top