Searched refs:padEnd (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 | 78 assertSame("", Strings.padEnd("", 0, '-')); in testPadEnd_noPadding() 79 assertSame("x", Strings.padEnd("x", 0, '-')); in testPadEnd_noPadding() 80 assertSame("x", Strings.padEnd("x", 1, '-')); in testPadEnd_noPadding() 81 assertSame("xx", Strings.padEnd("xx", 0, '-')); in testPadEnd_noPadding() 82 assertSame("xx", Strings.padEnd("xx", 2, '-')); in testPadEnd_noPadding() 86 assertEquals("-", Strings.padEnd("", 1, '-')); in testPadEnd_somePadding() 87 assertEquals("--", Strings.padEnd("", 2, '-')); in testPadEnd_somePadding() 88 assertEquals("x-", Strings.padEnd("x", 2, '-')); in testPadEnd_somePadding() 89 assertEquals("x--", Strings.padEnd("x", 3, '-')); in testPadEnd_somePadding() 90 assertEquals("xx-", Strings.padEnd("xx", 3, '-')); in testPadEnd_somePadding() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | StringsTest.java | 80 assertSame("", Strings.padEnd("", 0, '-')); in testPadEnd_noPadding() 81 assertSame("x", Strings.padEnd("x", 0, '-')); in testPadEnd_noPadding() 82 assertSame("x", Strings.padEnd("x", 1, '-')); in testPadEnd_noPadding() 83 assertSame("xx", Strings.padEnd("xx", 0, '-')); in testPadEnd_noPadding() 84 assertSame("xx", Strings.padEnd("xx", 2, '-')); in testPadEnd_noPadding() 88 assertEquals("-", Strings.padEnd("", 1, '-')); in testPadEnd_somePadding() 89 assertEquals("--", Strings.padEnd("", 2, '-')); in testPadEnd_somePadding() 90 assertEquals("x-", Strings.padEnd("x", 2, '-')); in testPadEnd_somePadding() 91 assertEquals("x--", Strings.padEnd("x", 3, '-')); in testPadEnd_somePadding() 92 assertEquals("xx-", Strings.padEnd("xx", 3, '-')); in testPadEnd_somePadding() [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Strings.java | 130 public static String padEnd(String string, int minLength, char padChar) { in padEnd() method in Strings
|