Skip to content

Commit

Permalink
Fixing tests ...
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed May 23, 2023
1 parent 4048f34 commit 23b6424
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module lang::rascal::tests::basic::CompilerIssues::QualifiedName

//data G = g(int n) | g1();
//
//@ignore{Defeats the compiler's strategy in lang::rascalcore::compile::Rascal2muRascal::RascalPattern for qualified name pattern}
//test bool nestedfunctionInTrueBranch(){
// int f(int x) = 2 * x;
// return [ g(n) := g1() ? f(n) : -1 ] == [ -1 ];
//}
data G = g(int n) | g1();

@ignore{Defeats the compiler's strategy in lang::rascalcore::compile::Rascal2muRascal::RascalPattern for qualified name pattern}
test bool nestedfunctionInTrueBranch(){
int f(int x) = 2 * x;
return [ g(n) := g1() ? f(n) : -1 ] == [ -1 ];
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ data D = d(int n) | d();
@ignoreCompiler{Defeats the strategy in lang::rascalcore::compile::Rascal2muRascal::RascalPattern for typed qualified name pattern}
test bool nestedfunctionInTrueBranch2() {
int f(int n) = n;
for(((d(int t) := d()) ? f(t) : 4) == 1){
return 10;
for(((d(int t) := d()) ? f(t) : 4) == 4){
return true;
}
return -1;
return false;
}

0 comments on commit 23b6424

Please sign in to comment.