terminal/src/test/java/org/jline/utils/AttributedStringBuilderTest.java
/**
     * Test multiple lines with tabs in
     */
Test multiple lines with tabs in
Test multiple lines with tabs in
@Test
    public void testSplitLineTabSize() {
       AttributedStringBuilder sb;
       sb = new AttributedStringBuilder().tabs(4);
       sb.append("hello\n\tWorld");
       assertEquals(TAB_SIZE_ERR_MSG, "hello\n    World", sb.toString());
       sb = new AttributedStringBuilder().tabs(4);
       sb.append("hello\tWorld\n\tfoo\tbar");
       assertEquals(TAB_SIZE_ERR_MSG, "hello   World\n    foo bar", sb.toString());
       sb = new AttributedStringBuilder().tabs(5);
       sb.append("hello\n\tWorld");
       assertEquals(TAB_SIZE_ERR_MSG, "hello\n     World", sb.toString());
       sb = new AttributedStringBuilder().tabs(5);
       sb.append("hello\tWorld\n\tfoo\tbar");
       assertEquals(TAB_SIZE_ERR_MSG, "hello     World\n     foo  bar", sb.toString());
    }
@ Test public void testSplitLineTabSize ( ) { AttributedStringBuilder sb ; sb = new AttributedStringBuilder ( ) . tabs ( 4 ) ; sb . append ( "hello\n\tWorld" ) ; assertEquals ( TAB_SIZE_ERR_MSG , "hello\n    World" , sb . toString ( ) ) ; sb = new AttributedStringBuilder ( ) . tabs ( 4 ) ; sb . append ( "hello\tWorld\n\tfoo\tbar" ) ; assertEquals ( TAB_SIZE_ERR_MSG , "hello   World\n    foo bar" , sb . toString ( ) ) ; sb = new AttributedStringBuilder ( ) . tabs ( 5 ) ; sb . append ( "hello\n\tWorld" ) ; assertEquals ( TAB_SIZE_ERR_MSG , "hello\n     World" , sb . toString ( ) ) ; sb = new AttributedStringBuilder ( ) . tabs ( 5 ) ; sb . append ( "hello\tWorld\n\tfoo\tbar" ) ; assertEquals ( TAB_SIZE_ERR_MSG , "hello     World\n     foo  bar" , sb . toString ( ) ) ; }
Test multiple lines with tabs in
Test multiple lines with tabs in