Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testRepeat (0.07 seconds)

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

      public void testPadEnd_null() {
        assertThrows(NullPointerException.class, () -> Strings.padEnd(null, 5, '0'));
      }
    
      @SuppressWarnings("InlineMeInliner") // test of method that doesn't just delegate
      public void testRepeat() {
        String input = "20";
        assertThat(Strings.repeat(input, 0)).isEqualTo("");
        assertThat(Strings.repeat(input, 1)).isEqualTo("20");
        assertThat(Strings.repeat(input, 2)).isEqualTo("2020");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 11.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/base/StringsTest.java

      public void testPadEnd_null() {
        assertThrows(NullPointerException.class, () -> Strings.padEnd(null, 5, '0'));
      }
    
      @SuppressWarnings("InlineMeInliner") // test of method that doesn't just delegate
      public void testRepeat() {
        String input = "20";
        assertThat(Strings.repeat(input, 0)).isEqualTo("");
        assertThat(Strings.repeat(input, 1)).isEqualTo("20");
        assertThat(Strings.repeat(input, 2)).isEqualTo("2020");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 11.4K bytes
    - Click Count (0)
Back to Top