mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-20 02:09:32 -06:00
added categoryProb, functionProb, functionIsConstructor
This commit is contained in:
@@ -17,6 +17,10 @@ main = do
|
||||
,TestCase (assertEqual "category context 1" [] (categoryContext gr "S"))
|
||||
,TestCase (assertEqual "category context 1" [(Explicit,"_",DTyp [] "N" [])] (categoryContext gr "P"))
|
||||
,TestCase (assertEqual "category context 1" [] (categoryContext gr "X")) -- no such category
|
||||
,TestCase (assertEqual "function is constructor 1" True (functionIsConstructor gr "s"))
|
||||
,TestCase (assertEqual "function is constructor 2" True (functionIsConstructor gr "z"))
|
||||
,TestCase (assertEqual "function is constructor 3" True (functionIsConstructor gr "c"))
|
||||
,TestCase (assertEqual "function is constructor 4" False (functionIsConstructor gr "ind"))
|
||||
]
|
||||
|
||||
eqJust (Just x) (Just y) = x == y
|
||||
|
||||
Reference in New Issue
Block a user