Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        assertEquals("_", CharMatcher.any().collapseFrom("a", '_'));
        assertEquals("_", CharMatcher.any().collapseFrom("ab", '_'));
        assertEquals("_", CharMatcher.any().collapseFrom("abcd", '_'));
      }
    
      public void testTrimFrom() {
        // trimming -
        doTestTrimFrom("-", "");
        doTestTrimFrom("x-", "x");
        doTestTrimFrom("-x", "x");
        doTestTrimFrom("--", "");
        doTestTrimFrom("x--", "x");
        doTestTrimFrom("--x", "x");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals("_", CharMatcher.any().collapseFrom("a", '_'));
        assertEquals("_", CharMatcher.any().collapseFrom("ab", '_'));
        assertEquals("_", CharMatcher.any().collapseFrom("abcd", '_'));
      }
    
      public void testTrimFrom() {
        // trimming -
        doTestTrimFrom("-", "");
        doTestTrimFrom("x-", "x");
        doTestTrimFrom("-x", "x");
        doTestTrimFrom("--", "");
        doTestTrimFrom("x--", "x");
        doTestTrimFrom("--x", "x");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
Back to top