diff --git a/main.rkt b/main.rkt index 1dd028a..0437e6e 100644 --- a/main.rkt +++ b/main.rkt @@ -347,12 +347,13 @@ (define-simple-check (check-txexprs-equal? tx1 tx2) ;; txexprs are deemed equal if they differ only in the ordering of attributes. ;; therefore, to check them, 1) sort their attributes, 2) straight list comparison. - (define symbolstring syms)))) - (define (sort-attrs x) - (if (txexpr? x) - (let-values ([(tag attr elements) (txexpr->values x)]) - (make-txexpr tag (sort attr #:key car symbolstring syms)))] + [sort-attrs (λ(x) + (if (txexpr? x) + (let-values ([(tag attr elements) (txexpr->values x)]) + (make-txexpr tag (sort attr #:key car symbol