Skip to content

Commit

Permalink
Define the ASSERT-EQUALP assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
foretspaisibles committed Apr 14, 2023
1 parent 5cbc747 commit b6b0121
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/org.melusina.confidence.texinfo
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function. A special kind of function, but a function.
@include include/fun-org.melusina.confidence-assert-eq.texinfo
@include include/fun-org.melusina.confidence-assert-eql.texinfo
@include include/fun-org.melusina.confidence-assert-equal.texinfo
@include include/fun-org.melusina.confidence-assert-equalp.texinfo
@include include/fun-org.melusina.confidence-assert-equals.texinfo
@include include/fun-org.melusina.confidence-assert-lt.texinfo
@include include/fun-org.melusina.confidence-assert-gt.texinfo
Expand Down
4 changes: 4 additions & 0 deletions src/assertion.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ This does not compare EXPR to T as a generalised boolean, cf. ASSERT-T*."
"Assert that A and B satisfy the EQUAL predicate."
(equal a b))

(define-assertion assert-equalp (a b)
"Assert that A and B satisfy the EQUALP predicate."
(equal a b))

(define-assertion assert= (a b)
"Assert that A and B satisfy the = predicate."
(= a b))
Expand Down
1 change: 1 addition & 0 deletions src/package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#:assert-eq
#:assert-eql
#:assert-equal
#:assert-equalp
#:assert=
#:assert<
#:assert<=
Expand Down

0 comments on commit b6b0121

Please sign in to comment.