Searched refs:padStart (Results 1 – 3 of 3) sorted by relevance
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | StringsTest.java | 49 assertSame("", Strings.padStart("", 0, '-')); in testPadStart_noPadding() 50 assertSame("x", Strings.padStart("x", 0, '-')); in testPadStart_noPadding() 51 assertSame("x", Strings.padStart("x", 1, '-')); in testPadStart_noPadding() 52 assertSame("xx", Strings.padStart("xx", 0, '-')); in testPadStart_noPadding() 53 assertSame("xx", Strings.padStart("xx", 2, '-')); in testPadStart_noPadding() 57 assertEquals("-", Strings.padStart("", 1, '-')); in testPadStart_somePadding() 58 assertEquals("--", Strings.padStart("", 2, '-')); in testPadStart_somePadding() 59 assertEquals("-x", Strings.padStart("x", 2, '-')); in testPadStart_somePadding() 60 assertEquals("--x", Strings.padStart("x", 3, '-')); in testPadStart_somePadding() 61 assertEquals("-xx", Strings.padStart("xx", 3, '-')); in testPadStart_somePadding() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | StringsTest.java | 51 assertSame("", Strings.padStart("", 0, '-')); in testPadStart_noPadding() 52 assertSame("x", Strings.padStart("x", 0, '-')); in testPadStart_noPadding() 53 assertSame("x", Strings.padStart("x", 1, '-')); in testPadStart_noPadding() 54 assertSame("xx", Strings.padStart("xx", 0, '-')); in testPadStart_noPadding() 55 assertSame("xx", Strings.padStart("xx", 2, '-')); in testPadStart_noPadding() 59 assertEquals("-", Strings.padStart("", 1, '-')); in testPadStart_somePadding() 60 assertEquals("--", Strings.padStart("", 2, '-')); in testPadStart_somePadding() 61 assertEquals("-x", Strings.padStart("x", 2, '-')); in testPadStart_somePadding() 62 assertEquals("--x", Strings.padStart("x", 3, '-')); in testPadStart_somePadding() 63 assertEquals("-xx", Strings.padStart("xx", 3, '-')); in testPadStart_somePadding() [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Strings.java | 98 public static String padStart(String string, int minLength, char padChar) { in padStart() method in Strings
|