Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testCommonPrefix (0.1 sec)

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

        assertThrows(NullPointerException.class, () -> Strings.repeat(null, 5));
      }
    
      @SuppressWarnings("UnnecessaryStringBuilder") // We want to test a non-String CharSequence
      public void testCommonPrefix() {
        assertEquals("", Strings.commonPrefix("", ""));
        assertEquals("", Strings.commonPrefix("abc", ""));
        assertEquals("", Strings.commonPrefix("", "abc"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/StringsTest.java

        assertThrows(NullPointerException.class, () -> Strings.repeat(null, 5));
      }
    
      @SuppressWarnings("UnnecessaryStringBuilder") // We want to test a non-String CharSequence
      public void testCommonPrefix() {
        assertEquals("", Strings.commonPrefix("", ""));
        assertEquals("", Strings.commonPrefix("abc", ""));
        assertEquals("", Strings.commonPrefix("", "abc"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top