- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testRtrim (0.05 seconds)
-
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"));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 11.4K bytes - Click Count (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, nilCreated: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0)