- 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: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 11.4K 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, nilRegistered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Dec 23 23:54:14 UTC 2025 - 62.9K bytes - Viewed (0)