mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
added some tests in the testsuite for the compiler
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
checking module linsCnc
|
||||
|
||||
Warning: no linearization type for C, inserting default {s : Str}
|
||||
|
||||
checking module linsCnc
|
||||
|
||||
Warning: no linearization type for C, inserting default {s : Str}
|
||||
|
||||
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] ** {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user