mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
added some tests in the testsuite for the compiler
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
checking module linsCnc
|
checking module linsCnc
|
||||||
|
|
||||||
Warning: no linearization type for C, inserting default {s : Str}
|
Warning: no linearization type for C, inserting default {s : Str}
|
||||||
|
|
||||||
checking module linsCnc
|
|
||||||
|
|
||||||
Warning: no linearization of test
|
Warning: no linearization of test
|
||||||
|
|
||||||
|
|||||||
5
testsuite/compiler/check/oper-definition/Res.gf
Normal file
5
testsuite/compiler/check/oper-definition/Res.gf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
resource Res = {
|
||||||
|
|
||||||
|
oper my_oper : Str -> Str ;
|
||||||
|
|
||||||
|
}
|
||||||
1
testsuite/compiler/check/oper-definition/test.gfs
Normal file
1
testsuite/compiler/check/oper-definition/test.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i testsuite/compiler/check/oper-definition/Res.gf
|
||||||
5
testsuite/compiler/check/oper-definition/test.gfs.gold
Normal file
5
testsuite/compiler/check/oper-definition/test.gfs.gold
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
checking module Res
|
||||||
8
testsuite/compiler/check/restricted-inheritance/A.gf
Normal file
8
testsuite/compiler/check/restricted-inheritance/A.gf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
abstract A = {
|
||||||
|
|
||||||
|
cat A1; A2 ;
|
||||||
|
fun f1 : A1 ;
|
||||||
|
f2 : A1 ;
|
||||||
|
g : A2 ;
|
||||||
|
|
||||||
|
}
|
||||||
3
testsuite/compiler/check/restricted-inheritance/B.gf
Normal file
3
testsuite/compiler/check/restricted-inheritance/B.gf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
abstract B = A - [A1] ** {
|
||||||
|
|
||||||
|
}
|
||||||
6
testsuite/compiler/typecheck/abstract/A.gf
Normal file
6
testsuite/compiler/typecheck/abstract/A.gf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
abstract A = {
|
||||||
|
|
||||||
|
cat A ;
|
||||||
|
B (A 1) ;
|
||||||
|
|
||||||
|
}
|
||||||
7
testsuite/compiler/typecheck/abstract/B.gf
Normal file
7
testsuite/compiler/typecheck/abstract/B.gf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
abstract B = {
|
||||||
|
|
||||||
|
cat S ;
|
||||||
|
|
||||||
|
fun f : S -> S 1 ;
|
||||||
|
|
||||||
|
}
|
||||||
8
testsuite/compiler/typecheck/abstract/C.gf
Normal file
8
testsuite/compiler/typecheck/abstract/C.gf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
abstract C = {
|
||||||
|
|
||||||
|
cat S ;
|
||||||
|
|
||||||
|
fun f : S -> S ;
|
||||||
|
def f x = 1 ;
|
||||||
|
|
||||||
|
}
|
||||||
1
testsuite/compiler/typecheck/abstract/test_A.gfs
Normal file
1
testsuite/compiler/typecheck/abstract/test_A.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i testsuite/compiler/typecheck/abstract/A.gf
|
||||||
5
testsuite/compiler/typecheck/abstract/test_A.gfs.gold
Normal file
5
testsuite/compiler/typecheck/abstract/test_A.gfs.gold
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
checking module A
|
||||||
1
testsuite/compiler/typecheck/abstract/test_B.gfs
Normal file
1
testsuite/compiler/typecheck/abstract/test_B.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i testsuite/compiler/typecheck/abstract/B.gf
|
||||||
5
testsuite/compiler/typecheck/abstract/test_B.gfs.gold
Normal file
5
testsuite/compiler/typecheck/abstract/test_B.gfs.gold
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
checking module B
|
||||||
1
testsuite/compiler/typecheck/abstract/test_C.gfs
Normal file
1
testsuite/compiler/typecheck/abstract/test_C.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i testsuite/compiler/typecheck/abstract/C.gf
|
||||||
5
testsuite/compiler/typecheck/abstract/test_C.gfs.gold
Normal file
5
testsuite/compiler/typecheck/abstract/test_C.gfs.gold
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
checking module C
|
||||||
7
testsuite/compiler/typecheck/concrete/A.gf
Normal file
7
testsuite/compiler/typecheck/concrete/A.gf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
resource A = {
|
||||||
|
|
||||||
|
oper a_Det : Str = "a" ;
|
||||||
|
|
||||||
|
silly : Str = a_Det "X" ;
|
||||||
|
|
||||||
|
}
|
||||||
1
testsuite/compiler/typecheck/concrete/test_A.gfs
Normal file
1
testsuite/compiler/typecheck/concrete/test_A.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i testsuite/compiler/typecheck/concrete/A.gf
|
||||||
5
testsuite/compiler/typecheck/concrete/test_A.gfs.gold
Normal file
5
testsuite/compiler/typecheck/concrete/test_A.gfs.gold
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
checking module A
|
||||||
Reference in New Issue
Block a user