Skip to content

Commit

Permalink
t: cleanup arithmetic test
Browse files Browse the repository at this point in the history
  • Loading branch information
easye committed Dec 12, 2024
1 parent d0a5253 commit edc52ec
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions t/arithmetic.lisp
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
;;; <https://github.com/armedbear/abcl/issues/177>

(prove:plan 2) ;;; why is this two tests?
(prove:plan 1)

(prove:is
(let ((condition (handler-case (/ 6 0) (division-by-zero (c) c)))
result)
(and
(arithmetic-error-operands condition)
(arithmetic-error-operation condition)))
t
(prove:ok
(let ((condition (handler-case (/ 6 0) (division-by-zero (c) c))))
(and
(equal
(arithmetic-error-operands condition)
'(6 0))
(equal
(arithmetic-error-operation condition)
'/)))
"DIVISION-BY-ZERO problems with operands and operation")

(prove:finalize)

0 comments on commit edc52ec

Please sign in to comment.