Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestReplace (0.71 sec)

  1. src/test/java/org/codelibs/core/lang/StringUtilTest.java

    import java.lang.reflect.Method;
    
    import org.junit.Test;
    
    /**
     * @author higa
     *
     */
    public class StringUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testReplace() throws Exception {
            assertEquals("1", "1bc45", StringUtil.replace("12345", "23", "bc"));
            assertEquals("2", "1234ef", StringUtil.replace("12345", "5", "ef"));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

        }
    
        /**
         * Test replace method
         */
        @Test
        @DisplayName("Replace should remove old and add new")
        void testReplace() {
            List<AvPair> pairs = new LinkedList<>();
            AvFlags oldFlags1 = new AvFlags(0x11111111);
            AvFlags oldFlags2 = new AvFlags(0x22222222);
            AvTimestamp timestamp = new AvTimestamp(new byte[8]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    	{"banana", "", "<>", 1, "<>banana"},
    	{"banana", "a", "a", -1, "banana"},
    	{"banana", "a", "a", 1, "banana"},
    	{"☺☻☹", "", "<>", -1, "<>☺<>☻<>☹<>"},
    }
    
    func TestReplace(t *testing.T) {
    	for _, tt := range ReplaceTests {
    		var (
    			in  = []byte(tt.in)
    			old = []byte(tt.old)
    			new = []byte(tt.new)
    		)
    		if !asan.Enabled {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
Back to top