mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Pass all missing test cases, including Phrasebook, except PhrasebookSnd
This commit is contained in:
@@ -154,6 +154,7 @@ eval cxt t = case t of
|
||||
Projection t u ->
|
||||
case (eval cxt t, eval cxt u) of
|
||||
(Missing f, _) -> Missing f
|
||||
(Tuple vs, Missing _) -> vs !! 0 -- imitate PGF behaviour
|
||||
(_, Missing f) -> Missing f
|
||||
(Tuple vs, Ix i) -> vs !! (i-1)
|
||||
(t', tv@(Tuple _)) -> eval cxt $ foldl Projection t' (flattenTuple tv)
|
||||
|
||||
Reference in New Issue
Block a user