Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testTruncate (0.07 sec)

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

          assertTrue(str, c == Ascii.toUpperCase(c));
          assertFalse(str, Ascii.isLowerCase(c));
          assertTrue(str, Ascii.isUpperCase(c));
        }
      }
    
      public void testTruncate() {
        assertEquals("foobar", Ascii.truncate("foobar", 10, "..."));
        assertEquals("fo...", Ascii.truncate("foobar", 5, "..."));
        assertEquals("foobar", Ascii.truncate("foobar", 6, "..."));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top