EnTabTestpublic class EnTabTest extends TestCase
Fields Summary |
---|
EnTab | t4 | EnTab | t8 |
Methods Summary |
---|
public static void | main(java.lang.String[] args)
junit.textui.TestRunner.run(EnTabTest.class);
| protected void | setUp()
super.setUp();
t4 = new EnTab(4);
t8 = new EnTab();
// For com.darwinsys.util.Debug: uncomment only
// "when you find yourself in times of trouble..."
//System.setProperty("debug.tab", "true");
//System.setProperty("debug.pad", "true");
//System.setProperty("debug.space", "true");
| public void | testGetTabSpacingDelegation()
assertEquals(4, t4.getTabSpacing());
assertEquals(8, t8.getTabSpacing());
| public void | testIdempotency()
assertEquals("", t4.entabLine(""));
assertEquals("", t8.entabLine(""));
assertEquals(" ", t4.entabLine(" "));
assertEquals("abcde", t4.entabLine("abcde"));
| public void | testLeadingTabs()
System.out.println(t4.entabLine(" A"));
assertEquals("\tA", t4.entabLine(" A"));
|
|