Skip to content

Commit

Permalink
forgot to add this test
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Feb 7, 2024
1 parent eaa4ad6 commit b3e11db
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/org/rascalmpl/library/lang/rascal/tests/concrete/Issue1913.rsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module lang::rascal::tests::concrete::Issue1913

extend lang::std::Layout;
import IO;

syntax As = "begin" A* as "end";

syntax A = "a" | "b";

test bool issue1913() {
A* bs = (As)`begin b a b end`.as;

As prog = (As)`begin b a a end`;

prog = visit (prog) {
case (As)`begin <A* as1> b <A* as2> end`
=> (As)`begin <A* as1> <A* bs> <A* as2> end`
}

println(prog);
// don't loose a space
return "<prog>" == "begin b a b a a end";
}

0 comments on commit b3e11db

Please sign in to comment.