Skip to content

Commit

Permalink
adding test case which triggers a current bug in WrapText[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jun 17, 2018
1 parent 0fce2c7 commit 18f4b51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_TextFormatting.m
Expand Up @@ -43,6 +43,9 @@
TestEquality[WrapLines[" abc,def",6,"x"], " abc,\n def"];
TestEquality[WrapLines[" abc,def",5,"xxx"], " abc,\n def"];

(* test for bug *)
TestEquality[WrapLines[" a*bc - d*e*f",8,""], " a*bc \n - d*e\n *f"];

Print["testing IndentText[] ..."];

TestEquality[IndentText["abc",1], " abc"];
Expand Down

0 comments on commit 18f4b51

Please sign in to comment.