logiccomp / lsl

4 stars 2 forks source link

check-satisfied error when arguments swapped links to location within rackunit #10

Closed dbp closed 10 months ago

dbp commented 10 months ago

Here's a reproduction:

#lang lsl

(define (f x) #t)

(check-satisfied f #t)

The error message is... reasonable (seems like it could, in theory, be better, but it's not too bad), but the srcloc (the red X that is linked) is messed up for some reason....

camoy commented 10 months ago

Looks like this now:

2023-12-23_17-12

The error was directly inherited from rackunit which didn't do any input validation of its own. I've added to some of the other check forms some contracts as well.