mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
added test cases for cyrcular definitions
This commit is contained in:
7
testsuite/compiler/check/cyclic/abs-types/Test1Abs.gf
Normal file
7
testsuite/compiler/check/cyclic/abs-types/Test1Abs.gf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
abstract Test1Abs = {
|
||||||
|
|
||||||
|
cat
|
||||||
|
A B ;
|
||||||
|
B A ;
|
||||||
|
|
||||||
|
}
|
||||||
10
testsuite/compiler/check/cyclic/abs-types/Test2Abs.gf
Normal file
10
testsuite/compiler/check/cyclic/abs-types/Test2Abs.gf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
abstract Test2Abs = {
|
||||||
|
|
||||||
|
cat
|
||||||
|
A ;
|
||||||
|
B A ;
|
||||||
|
|
||||||
|
fun f : (x : A) -> B (g x) ;
|
||||||
|
g : (x : A) -> B (f x) ;
|
||||||
|
|
||||||
|
}
|
||||||
1
testsuite/compiler/check/cyclic/abs-types/test1.gfs
Normal file
1
testsuite/compiler/check/cyclic/abs-types/test1.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i testsuite/compiler/check/cyclic/abs-types/Test1Abs.gf
|
||||||
4
testsuite/compiler/check/cyclic/abs-types/test1.gfs.gold
Normal file
4
testsuite/compiler/check/cyclic/abs-types/test1.gfs.gold
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
1
testsuite/compiler/check/cyclic/abs-types/test2.gfs
Normal file
1
testsuite/compiler/check/cyclic/abs-types/test2.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i testsuite/compiler/check/cyclic/abs-types/Test2Abs.gf
|
||||||
4
testsuite/compiler/check/cyclic/abs-types/test2.gfs.gold
Normal file
4
testsuite/compiler/check/cyclic/abs-types/test2.gfs.gold
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
10
testsuite/compiler/check/cyclic/opers/TestOpers.gf
Normal file
10
testsuite/compiler/check/cyclic/opers/TestOpers.gf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
resource TestOpers = {
|
||||||
|
|
||||||
|
flags
|
||||||
|
optimize=noexpand;
|
||||||
|
|
||||||
|
oper
|
||||||
|
A : Str = B ;
|
||||||
|
B : Str = A ;
|
||||||
|
|
||||||
|
}
|
||||||
1
testsuite/compiler/check/cyclic/opers/test.gfs
Normal file
1
testsuite/compiler/check/cyclic/opers/test.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i testsuite/compiler/check/cyclic/opers/TestOpers.gf
|
||||||
4
testsuite/compiler/check/cyclic/opers/test.gfs.gold
Normal file
4
testsuite/compiler/check/cyclic/opers/test.gfs.gold
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
7
testsuite/compiler/check/cyclic/params/TestParams.gf
Normal file
7
testsuite/compiler/check/cyclic/params/TestParams.gf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
resource TestParams = {
|
||||||
|
|
||||||
|
param
|
||||||
|
A = A1 B ;
|
||||||
|
B = B1 A ;
|
||||||
|
|
||||||
|
}
|
||||||
1
testsuite/compiler/check/cyclic/params/test.gfs
Normal file
1
testsuite/compiler/check/cyclic/params/test.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i testsuite/compiler/check/cyclic/params/TestParams.gf
|
||||||
4
testsuite/compiler/check/cyclic/params/test.gfs.gold
Normal file
4
testsuite/compiler/check/cyclic/params/test.gfs.gold
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user