Skip to content
Snippets Groups Projects
Commit fd5c0fcd authored by Gilbert L Bernstein's avatar Gilbert L Bernstein
Browse files

Update chapter3-exercise-soft-hyphens-tests.md

parent 1ef12fae
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ If the word fits without splitting then no literal hyphens are present.
When a soft hyphen is replaced with a literal hyphen you need to check that the
text with the hyphen fits on the line.
>>> browser.WIDTH = 90
>>> browser.set_parameters(WIDTH=90)
>>> test_layout("a\N{soft hyphen}b\N{soft hyphen}c\N{soft hyphen}d\N{soft hyphen}e") #doctest: +NORMALIZE_WHITESPACE
[(13.0, 21.0, 'abc-', Font size=16 weight=normal slant=roman style=None),
(13.0, 41.0, 'de', Font size=16 weight=normal slant=roman style=None)]
......@@ -51,7 +51,7 @@ When a soft hyphen is replaced with a literal hyphen you need to check that the
Sometimes a word may be so long that it needs to be split multiple times.
>>> browser.WIDTH = 122
>>> browser.set_parameters(WIDTH=122)
>>> test_layout("multi\N{soft hyphen}word\N{soft hyphen}split") #doctest: +NORMALIZE_WHITESPACE
[(13.0, 21.0, 'multi-', Font size=16 weight=normal slant=roman style=None),
(13.0, 41.0, 'word-', Font size=16 weight=normal slant=roman style=None),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment