Skip to content

Commit

Permalink
last use of testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Sep 14, 2023
1 parent a106c63 commit e8688aa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module lang::rascal::tests::concrete::Syntax1

import Exception;
import ParseTree;
import IO;

layout Whitespace = [\ \t\n]*;

Expand Down Expand Up @@ -44,7 +45,10 @@ test bool parseD5() = (D)`d` := parse(#start[D], " d ").top;

test bool parseDS() = (DS)`d d d` := parse(#DS, "d d d") ;

test bool parseDSfromFile() = (DS)`d d d` := parse(#DS, |testdata:///DS.trm|);
test bool parseDSfromFile() {
writeFile(|tmp:///DS.trm|, "d d d");
return (DS)`d d d` := parse(#DS, |tmp:///DS.trm|);
}

test bool singleA() = (A) `a` := (A) `a`;

Expand Down

0 comments on commit e8688aa

Please sign in to comment.