Skip to content

Commit

Permalink
added WD test
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Apr 2, 2024
1 parent 33fd54a commit 7f2d63b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/org/rascalmpl/library/lang/box/util/Box2Text.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -515,3 +515,14 @@ test bool simpleAlignedTableDifferentAlignment()
'777 888 999
'";

test bool WDtest() {
L1 = H([L("aap")] , hs=0);
L2 = H([WD([L1]), L("noot")], hs=0);
L3 = H([WD([L2]), L("mies")], hs=0);

return format(V([L1, L2, L3]))
== "aap
' noot
' mies
'";
}

0 comments on commit 7f2d63b

Please sign in to comment.