update test - now fails

This commit is contained in:
Gordon Williams 2022-05-11 15:54:23 +01:00
parent 2cd16032c3
commit 7895d34b2d

View File

@ -39,6 +39,11 @@ g.clear().setFont("4x6");
lines = g.wrapString("X", 10);
SHOULD_BE(lines, ["X"]);
// wrap a long word to multiple lines
g.clear().setFont("4x6");
lines = g.wrapString("ABCDEFGHIJ", 10);
SHOULD_BE(lines, ["AB","CD","EF","GH","IJ"]);
// word too big for a line - should be split
g.clear().setFont("4x6");
lines = g.wrapString("A very LongWord is not here", 30);