Also rename assert-wta-error to assert-type-error.
\f
(define-test 'match-template-pattern
(lambda ()
- (assert-wta-error (lambda () (match-numbers '((? a)) 1)))
+ (assert-type-error (lambda () (match-numbers '((? a)) 1)))
(assert-equal (match-numbers '((? a)) '(1))
'((a + 1)))
(assert-equal (match-numbers '((? a -) (? b)) '(1 2))
(lambda ()
(let ((np (lambda (object) #f)))
(assert-false (predicate? np))
- (assert-wta-error (lambda () (predicate->tag np)))
- (assert-wta-error (lambda () (predicate-name np)))
+ (assert-type-error (lambda () (predicate->tag np)))
+ (assert-type-error (lambda () (predicate-name np)))
(assert-true (string? (predicate-description np))))))
(define-test 'simple-predicate
(define-for-tests assert-simple-error
(error-assertion condition-type:simple-error))
-(define-for-tests assert-wta-error
+(define-for-tests assert-type-error
(error-assertion condition-type:wrong-type-argument))
+(define-for-tests assert-range-error
+ (error-assertion condition-type:bad-range-argument))
+
(define-for-tests keep-it-fast!?
(let ((v (get-environment-variable "FAST")))
(if (or (eq? v #f) (string-null? v))