- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testLtrim (0.07 sec)
-
src/test/java/org/codelibs/core/lang/StringUtilTest.java
} /** * @throws Exception */ @Test public void testLtrim() throws Exception { assertEquals("1", "trim", StringUtil.ltrim("zzzytrim", "xyz")); assertEquals("2", "", StringUtil.ltrim("xyz", "xyz")); } /** * @throws Exception */ @Test public void testRtrim() throws Exception { assertEquals("trim", StringUtil.rtrim("trimxxxx", "x"));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 12K bytes - Viewed (0) -
src/bytes/bytes_test.go
{"TrimSuffix", nil, "", nil}, {"TrimSuffix", []byte{}, "", []byte{}}, {"TrimSuffix", []byte{'a'}, "a", []byte{}}, {"TrimSuffix", []byte("☺"), "☺", []byte{}}, } func TestTrim(t *testing.T) { toFn := func(name string) (func([]byte, string) []byte, func([]byte, []byte) []byte) { switch name { case "Trim": return Trim, nil case "TrimLeft": return TrimLeft, nil
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0)