Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testConstant (0.14 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. src/unicode/utf8/utf8_test.go

    		panic("utf8.MaxRune is wrong")
    	}
    	if RuneError != unicode.ReplacementChar {
    		panic("utf8.RuneError is wrong")
    	}
    }
    
    // Validate the constants redefined from unicode.
    func TestConstants(t *testing.T) {
    	if MaxRune != unicode.MaxRune {
    		t.Errorf("utf8.MaxRune is wrong: %x should be %x", MaxRune, unicode.MaxRune)
    	}
    	if RuneError != unicode.ReplacementChar {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 06:17:15 UTC 2022
    - 16.2K bytes
    - Viewed (0)
Back to top