Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testAddEscapes (0.08 sec)

  1. android/guava-tests/test/com/google/common/escape/CharEscaperBuilderTest.java

     * limitations under the License.
     */
    
    package com.google.common.escape;
    
    import junit.framework.TestCase;
    
    public class CharEscaperBuilderTest extends TestCase {
    
      public void testAddEscapes() {
        char[] cs = {'a', 'b', 'c'};
        CharEscaperBuilder builder = new CharEscaperBuilder().addEscapes(cs, "Z");
        Escaper escaper = builder.toEscaper();
        assertEquals("ZZZdef", escaper.escape("abcdef"));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 15 20:25:06 UTC 2018
    - 975 bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/escape/CharEscaperBuilderTest.java

     * limitations under the License.
     */
    
    package com.google.common.escape;
    
    import junit.framework.TestCase;
    
    public class CharEscaperBuilderTest extends TestCase {
    
      public void testAddEscapes() {
        char[] cs = {'a', 'b', 'c'};
        CharEscaperBuilder builder = new CharEscaperBuilder().addEscapes(cs, "Z");
        Escaper escaper = builder.toEscaper();
        assertEquals("ZZZdef", escaper.escape("abcdef"));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 975 bytes
    - Viewed (0)
Back to top