Back

// The tab stop positions are indicated by '|'. Set the tab stop positions
// to 3 or to 5. Convert this file and compare if the characters a, b, c, e and s
// in the original code line are aligned exactly like in the lines below or above.


// single tab tests
|  |  |  |  |  |  |  |  |
a->b->c->d->e->s                    // correct way for tab stops set to 3
a  b  c  d  e  s                 // original code line
a--->b--->c--->d--->e--->s          // correct way for tab stops set to 5
|    |    |    |    |    |    |


|  |  |  |  |  |  |  |  |
aa>bb>cc>dd>ee>s                    // correct way for tab stops set to 3
aa bb cc dd ee s                // original code line
aa-->bb-->cc-->ss-->ee-->s          // correct way for tab stops set to 5
|    |    |    |    |    |    |


|  |  |  |  |  |  |  |  |
aaa-->bbb-->ccc-->s                 // correct way for tab stops set to 3
aaa   bbb   ccc   s                    // original code line
aaa->bbb->ccc->s                    // correct way for tab stops set to 5
|    |    |    |    |    |    |


// double tab tests
|  |  |  |  |  |  |  |  |
a->-->b->-->c->-->s                 // correct way for tab stops set to 3
a     b     c     s              // original code line
a--->---->b--->---->c--->---->s     // correct way for tab stops set to 5
|    |    |    |    |    |    |


|  |  |  |  |  |  |  |  |
aa>-->bb>-->cc>-->s                 // correct way for tab stops set to 3
aa    bb    cc    s               // original code line
aa-->---->bb-->---->cc-->---->s     // correct way for tab stops set to 5
|    |    |    |    |    |    |


|  |  |  |  |  |  |  |  |
aaa-->-->bbb-->-->ccc-->-->s        // correct way for tab stops set to 3
aaa      bbb      ccc      s      // original code line
aaa->---->bbb->---->ccc->---->s     // correct way for tab stops set to 3
|    |    |    |    |    |    |

Top