Skip to content

Commit 59079bb

Browse files
committed
Fix synthax tests.
1 parent 46d44cf commit 59079bb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

test/query/grammar.rkt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,11 @@
7777
(define (verified-equal? vars impl spec)
7878
(or (equal? impl spec)
7979
(begin
80-
(match-define `(,_ ... (define ,impl-h ,_ ...)) impl)
8180
(match-define `(,_ ... (define ,spec-h ,_ ...)) spec)
8281
(define consts
8382
(append (map term->datum vars)
84-
(make-list (- (length impl-h) (length vars) 1) #f)))
85-
(define body `(let ([impl (lambda ,(cdr impl-h) ,@impl ,impl-h)]
83+
(make-list (- (length spec-h) (length vars) 1) #f)))
84+
(define body `(let ([impl (lambda ,(cdr spec-h) ,@impl ,spec-h)]
8685
[spec (lambda ,(cdr spec-h) ,@spec ,spec-h)])
8786
(unsat?
8887
(verify

test/query/synthax.rkt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@
6464
(define (verified-equal? vars impl spec)
6565
(or (equal? impl spec)
6666
(begin
67-
(match-define `(,_ ... (define ,impl-h ,_ ...)) impl)
6867
(match-define `(,_ ... (define ,spec-h ,_ ...)) spec)
69-
(define consts (map term->datum vars))
70-
(define body `(let ([impl (lambda ,(cdr impl-h) ,@impl ,impl-h)]
68+
(define consts (take (map term->datum vars) (sub1 (length spec-h))))
69+
(define body `(let ([impl (lambda ,(cdr spec-h) ,@impl ,spec-h)]
7170
[spec (lambda ,(cdr spec-h) ,@spec ,spec-h)])
7271
(unsat?
7372
(verify

0 commit comments

Comments
 (0)