Changeset 3e8ff1e for util.c


Ignore:
Timestamp:
Jul 15, 2009, 11:03:48 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
a52d13a
Parents:
72ab15f
git-author:
Nelson Elhage <nelhage@mit.edu> (07/12/09 21:45:00)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/15/09 23:03:48)
Message:
Implement owl_text_expand_tabs, and tests.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r7bf51d5 r3e8ff1e  
    789789              !strcmp("meep", skiptokens("foo 'bar quux' meep", 2)));
    790790
     791  FAIL_UNLESS("expand_tabs 1",
     792              !strcmp("        hi", owl_text_expand_tabs("\thi")));
     793
     794  FAIL_UNLESS("expand_tabs 2",
     795              !strcmp("        hi\nword    tab", owl_text_expand_tabs("\thi\nword\ttab")));
     796
     797  FAIL_UNLESS("expand_tabs 3",
     798              !strcmp("                2 tabs", owl_text_expand_tabs("\t\t2 tabs")));
     799
    791800  /* if (numfailed) printf("*** WARNING: failures encountered with owl_util\n"); */
    792801  printf("# END testing owl_util (%d failures)\n", numfailed);
Note: See TracChangeset for help on using the changeset viewer.