Skip to content

Commit

Permalink
more tests for Box2Text
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Mar 29, 2024
1 parent 444df12 commit 278ef4d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/org/rascalmpl/library/lang/box/util/Box2Text.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -571,3 +571,16 @@ test bool verticalIndentation2()
' B
'C
'";
test bool wrapping1IgnoreIndent()
= format(HV([L("A"), I([L("B")]), L("C")], hs=0), opts=options(maxWidth=2, wrapAfter=2))
== "AB
'C
'";
test bool flipping1NoIndent()
= format(HOV([L("A"), L("B"), L("C")], hs=0, vs=0), opts=options(maxWidth=2, wrapAfter=2))
== "A
'B
'C
'";

0 comments on commit 278ef4d

Please sign in to comment.