diff options
author | Eduardo Julian | 2018-01-28 20:37:28 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-01-28 20:37:28 -0400 |
commit | cdb310ae9918b7887f3b0c00916e26a30be57e0d (patch) | |
tree | 3fc5931f75122c5f5912f7a18d7be561596ef45a /new-luxc/test/test/luxc/lang/synthesis/structure.lux | |
parent | 6b6901b31bbec9947522a94274cd11c8e7683168 (diff) |
- Got the tests to build again.
Diffstat (limited to 'new-luxc/test/test/luxc/lang/synthesis/structure.lux')
-rw-r--r-- | new-luxc/test/test/luxc/lang/synthesis/structure.lux | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/new-luxc/test/test/luxc/lang/synthesis/structure.lux b/new-luxc/test/test/luxc/lang/synthesis/structure.lux index e401149ec..46c9bf2a1 100644 --- a/new-luxc/test/test/luxc/lang/synthesis/structure.lux +++ b/new-luxc/test/test/luxc/lang/synthesis/structure.lux @@ -10,7 +10,8 @@ test) (luxc (lang ["la" analysis] ["ls" synthesis] - (synthesis [".S" expression]))) + (synthesis [".S" expression]) + [".L" extension])) (// common)) (context: "Variants" @@ -21,7 +22,7 @@ memberA gen-primitive] ($_ seq (test "Can synthesize variants." - (|> (expressionS.synthesize (la.sum tagA size +0 memberA)) + (|> (expressionS.synthesize extensionL.no-syntheses (la.sum tagA size +0 memberA)) (case> (^ [_ (#.Form (list [_ (#.Nat tagS)] [_ (#.Bool last?S)] memberS))]) (and (n/= tagA tagS) (B/= (n/= (n/dec size) tagA) @@ -39,7 +40,7 @@ membersA (r.list size gen-primitive)] ($_ seq (test "Can synthesize tuple." - (|> (expressionS.synthesize (la.product membersA)) + (|> (expressionS.synthesize extensionL.no-syntheses (la.product membersA)) (case> [_ (#.Tuple membersS)] (and (n/= size (list.size membersS)) (list.every? (product.uncurry corresponds?) (list.zip2 membersA membersS))) |