File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1313
1414(activate-platform! (*platform-name*))
1515
16+ (define skip-rules '(log-pow))
17+
1618(define num-test-points (make-parameter 100 ))
1719(define double-repr (get-representation 'binary64 ))
1820
2628 #:when (string-contains? (~a op) "unsound " )
2729 (define op* (string->symbol (string-replace (symbol->string (car expr)) "unsound- " "" )))
2830 (cons op* (map drop-unsound args))]
29- [(list (? (λ (x) (string-prefix? (symbol->string x) "sound- " )) op) args ... )
31+ [(list op args ... extra)
32+ #:when (string-contains? (~a op) "sound " )
3033 (define op* (string->symbol (substring (symbol->string (car expr)) (string-length "sound- " ))))
31- (define args* (drop-right args 1 ))
32- (cons op* (map drop-unsound args*))]
34+ (cons op* (map drop-unsound args))]
35+ [(list op args ... )
36+ (cons op (map drop-unsound args))]
3337 [_ expr]))
3438
3539(define (check-rule test-rule)
5963 (check-rule rule))))
6064
6165(module+ test
62- (for* ([rule (in-list (*rules*))])
66+ (for* ([rule (in-list (*rules*))]
67+ #:unless (set-member? skip-rules (rule-name rule)))
6368 (test-case (~a (rule-name rule))
6469 (check-rule rule))))
You can’t perform that action at this time.
0 commit comments