mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-19 16:12:52 -06:00
split the testsuite to different directories for compiler, runtime and libraries
This commit is contained in:
9
testsuite/compiler/check/lins/lins.gf
Normal file
9
testsuite/compiler/check/lins/lins.gf
Normal file
@@ -0,0 +1,9 @@
|
||||
abstract lins = {
|
||||
|
||||
cat Nat ;
|
||||
cat C Nat ;
|
||||
|
||||
fun zero : Nat ;
|
||||
test : C zero ;
|
||||
|
||||
}
|
||||
2
testsuite/compiler/check/lins/lins.gfs
Normal file
2
testsuite/compiler/check/lins/lins.gfs
Normal file
@@ -0,0 +1,2 @@
|
||||
i -src -erasing=on testsuite/compiler/check/lins/linsCnc.gf
|
||||
pg -printer=pmcfg_pretty
|
||||
17
testsuite/compiler/check/lins/lins.gfs.gold
Normal file
17
testsuite/compiler/check/lins/lins.gfs.gold
Normal file
@@ -0,0 +1,17 @@
|
||||
checking module linsCnc
|
||||
|
||||
Warning: no linearization type for C, inserting default {s : Str}
|
||||
|
||||
checking module linsCnc
|
||||
|
||||
Warning: no linearization of test
|
||||
|
||||
|
||||
|
||||
language linsCnc
|
||||
|
||||
productions
|
||||
|
||||
C1 -> F0[]
|
||||
|
||||
functions
|
||||
11
testsuite/compiler/check/lins/linsCnc.gf
Normal file
11
testsuite/compiler/check/lins/linsCnc.gf
Normal file
@@ -0,0 +1,11 @@
|
||||
concrete linsCnc of lins = {
|
||||
|
||||
lincat Nat = {} ;
|
||||
|
||||
-- we expect warnings because the lines bellow are commented out
|
||||
-- we don't expect warning for zero because Nat = {}
|
||||
|
||||
-- lincat C = {s : Str} ;
|
||||
-- lin test = {s = "test"} ;
|
||||
|
||||
}
|
||||
14
testsuite/compiler/typecheck/Check.gf
Normal file
14
testsuite/compiler/typecheck/Check.gf
Normal file
@@ -0,0 +1,14 @@
|
||||
abstract Check = {
|
||||
|
||||
cat Typ ; Exp Typ ;
|
||||
|
||||
fun plus : (t : Typ) -> (_,_ : Exp t) -> Exp t ;
|
||||
|
||||
fun TInt, TFloat : Typ ;
|
||||
|
||||
fun Zero : Exp TInt ;
|
||||
fun Pi : Exp TFloat ;
|
||||
|
||||
fun sqrt : Exp TFloat -> Exp TFloat ;
|
||||
|
||||
}
|
||||
5
testsuite/compiler/update/ArrityCheck.gf
Normal file
5
testsuite/compiler/update/ArrityCheck.gf
Normal file
@@ -0,0 +1,5 @@
|
||||
abstract ArrityCheck = {
|
||||
fun f : Int -> Int -> Int ;
|
||||
def f 0 = \x -> x ;
|
||||
f 1 1 = 0 ;
|
||||
}
|
||||
1
testsuite/compiler/update/ArrityCheck.gfs
Normal file
1
testsuite/compiler/update/ArrityCheck.gfs
Normal file
@@ -0,0 +1 @@
|
||||
i testsuite/compiler/update/ArrityCheck.gf
|
||||
8
testsuite/compiler/update/ArrityCheck.gfs.gold
Normal file
8
testsuite/compiler/update/ArrityCheck.gfs.gold
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
C:\gf_2\testsuite\compiler\update\ArrityCheck.gf:6:1: cannot unify the informations
|
||||
|
||||
fun f : Int -> Int -> Int ;
|
||||
|
||||
Reference in New Issue
Block a user