Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions typed-racket-lib/typed-racket/logic/ineq.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
[(lexp: c ts)
(define coeffs (terms-coeffs ts))
(if (zero? c) coeffs (cons c coeffs))]
[_ (error 'lexp-scalars "given invalid lexp ~a" exp)]))
[_ (raise-arguments-error 'lexp-scalars "given invalid lexp" "exp" exp)]))

(module+ test
(check-true (and (equal? (sort (lexp-vars (lexp* 17 '(42 x) '(2 z))) symbol<?)
Expand Down Expand Up @@ -496,7 +496,7 @@
;; leq1: lexp1 <= bx
;; leq2: cx <= lexp2
[(and (eqv? 0 a) (eqv? 0 d)) (leq (lexp-scale l1 c) (lexp-scale r2 b))]
[else (error 'leq-join "cannot join ~a and ~a by ~a" leq1 leq2 x)])))
[else (raise-arguments-error 'leq-join "cannot join and by" "leq1" leq1 "leq2" leq2 "x" x)])))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well that's not right.


(module+ test
(check-equal? (leq-join (leq (lexp* '(2 x))
Expand Down