File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 232
232
(trace , name))))
233
233
234
234
(defmacro assert (pred &optional (message " " ) &rest args)
235
- (let
236
- ((ret (gensym )))
237
- ` (let* (failure (ret , pred))
238
- ; ; lisp::step could not work with macros..
239
- ; ; (if (and (listp ',pred) (functionp (car ',pred)))
240
- ; ; (setq ret (lisp::step ,pred))
241
- ; ; (setq ret ,pred))
242
- ; ;
243
- (if (not ret)
244
- ; ; escape <> for xml
245
- (send *unit-test* :increment-failure ' ,pred (format nil , message ,@ args)
246
- (escape-xml-string (subseq (send *error-output* :buffer ) 0 (or (position 0 (send *error-output* :buffer )) (length (send *error-output* :buffer )))))))
247
- )))
235
+ ` (let (failure (ret , pred))
236
+ ; ; lisp::step could not work with macros..
237
+ ; ; (if (and (listp ',pred) (functionp (car ',pred)))
238
+ ; ; (setq ret (lisp::step ,pred))
239
+ ; ; (setq ret ,pred))
240
+ ; ;
241
+ (if (not ret)
242
+ ; ; escape <> for xml
243
+ (send *unit-test* :increment-failure ' ,pred (format nil , message ,@ args)
244
+ (escape-xml-string (subseq (send *error-output* :buffer ) 0 (or (position 0 (send *error-output* :buffer )) (length (send *error-output* :buffer )))))))
245
+ ))
248
246
249
247
250
248
t ))
You can’t perform that action at this time.
0 commit comments