tests/padding.t @ 89ad444c000b default tip
Add newline test
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Sat, 11 Apr 2020 11:55:21 -0400 |
| parents | 831123b0359f |
| children | (none) |
Setup: $ alias xt="python $TESTDIR/../t.py --task-dir `pwd` --list test" Add tasks of varying width: $ xt Short. 5 $ xt Longcat is long. 4 Test paddings: $ xt 4 - Longcat is long. 5 - Short. $ cat test Longcat is long. | id:4c623ab4df5cc1a10d32558768c2c21bddf2c053 Short. | id:5a7a65db2caa6313a70ceb75b1bd806f7879f6b7 $ cat >> test << EOF > Long one. | id: long1 > Very long two. | id: long2 > EOF $ xt -f 5 $ xt 4 - Longcat is long. long1 - Long one. long2 - Very long two. $ cat test Longcat is long. | id:4c623ab4df5cc1a10d32558768c2c21bddf2c053 Long one. | id:long1 Very long two. | id:long2