diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2013-11-01 20:02:05 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2013-11-01 20:02:05 +0100 |
commit | 3587360b6f134a763aa005ba3c4e8e71cc73ebe9 (patch) | |
tree | 0523983d7c067c5ec8b262b6eb6ccc5100f3cf38 /test | |
parent | 8973148ce04accd8f5a4fce4e1bd3321896c3461 (diff) |
test/liang: allow passing a word via commandline
Diffstat (limited to 'test')
-rw-r--r-- | test/liang.cc | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/test/liang.cc b/test/liang.cc index ce5036fa..932a1f54 100644 --- a/test/liang.cc +++ b/test/liang.cc @@ -25,33 +25,37 @@ int main (int argc, char *argv[]) { dw::fltk::FltkPlatform p; - hyphenateWord (&p, "..."); - hyphenateWord (&p, "Jahrhundertroman"); - hyphenateWord (&p, "JAHRHUNDERTROMAN"); - hyphenateWord (&p, "„Jahrhundertroman“"); - hyphenateWord (&p, "währenddessen"); - hyphenateWord (&p, "„währenddessen“"); - hyphenateWord (&p, "Ückendorf"); - hyphenateWord (&p, "über"); - hyphenateWord (&p, "aber"); - hyphenateWord (&p, "Ackermann"); - hyphenateWord (&p, "„Ackermann“"); - hyphenateWord (&p, "entscheidet."); - hyphenateWord (&p, "Grundstücksverkehrsgenehmigungszuständigkeits" - "übertragungsverordnung"); - hyphenateWord (&p, "„Grundstücksverkehrsgenehmigungszuständigkeits" - "übertragungsverordnung“"); - hyphenateWord (&p, "Grundstücksverkehrsgenehmigungszuständigkeit"); - hyphenateWord (&p, "„Grundstücksverkehrsgenehmigungszuständigkeit“"); - hyphenateWord (&p, "(6R,7R)-7-[2-(2-Amino-4-thiazolyl)-glyoxylamido]-3-" - "(2,5-dihydro-6-hydroxy-2-methyl-5-oxo-1,2,4-triazin-3-yl-" - "thiomethyl)-8-oxo-5-thia-1-azabicyclo[4.2.0]oct-2-en-2-" - "carbonsäure-7²-(Z)-(O-methyloxim)"); - hyphenateWord (&p, "Abtei-Stadt"); - hyphenateWord (&p, "Nordrhein-Westfalen"); - hyphenateWord (&p, "kurz\xc2\xa0und\xc2\xa0knapp"); - hyphenateWord (&p, "weiß"); - hyphenateWord (&p, "www.dillo.org"); + if (argc > 1) { + hyphenateWord (&p, argv[1]); + } else { + hyphenateWord (&p, "..."); + hyphenateWord (&p, "Jahrhundertroman"); + hyphenateWord (&p, "JAHRHUNDERTROMAN"); + hyphenateWord (&p, "„Jahrhundertroman“"); + hyphenateWord (&p, "währenddessen"); + hyphenateWord (&p, "„währenddessen“"); + hyphenateWord (&p, "Ückendorf"); + hyphenateWord (&p, "über"); + hyphenateWord (&p, "aber"); + hyphenateWord (&p, "Ackermann"); + hyphenateWord (&p, "„Ackermann“"); + hyphenateWord (&p, "entscheidet."); + hyphenateWord (&p, "Grundstücksverkehrsgenehmigungszuständigkeits" + "übertragungsverordnung"); + hyphenateWord (&p, "„Grundstücksverkehrsgenehmigungszuständigkeits" + "übertragungsverordnung“"); + hyphenateWord (&p, "Grundstücksverkehrsgenehmigungszuständigkeit"); + hyphenateWord (&p, "„Grundstücksverkehrsgenehmigungszuständigkeit“"); + hyphenateWord (&p, "(6R,7R)-7-[2-(2-Amino-4-thiazolyl)-glyoxylamido]-3-" + "(2,5-dihydro-6-hydroxy-2-methyl-5-oxo-1,2,4-triazin-3-yl-" + "thiomethyl)-8-oxo-5-thia-1-azabicyclo[4.2.0]oct-2-en-2-" + "carbonsäure-7²-(Z)-(O-methyloxim)"); + hyphenateWord (&p, "Abtei-Stadt"); + hyphenateWord (&p, "Nordrhein-Westfalen"); + hyphenateWord (&p, "kurz\xc2\xa0und\xc2\xa0knapp"); + hyphenateWord (&p, "weiß"); + hyphenateWord (&p, "www.dillo.org"); + } return 0; } |