From 0552fe4d5bf800130f3950ce95aa23854362df10 Mon Sep 17 00:00:00 2001 From: Ola Nilsson Date: Wed, 28 Aug 2024 00:02:25 +0200 Subject: [PATCH] Add :to-be-close-to docstring --- buttercup.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buttercup.el b/buttercup.el index 82a1dd8..64b16ae 100644 --- a/buttercup.el +++ b/buttercup.el @@ -614,6 +614,8 @@ See also `buttercup-define-matcher'." :expect-mismatch-phrase "Expected `%A' < %b, but `%A' was %a.") (buttercup-define-matcher :to-be-close-to (a b precision) + "Verify that |A-B| < 10^-PRECISION. +\(expect A :to-be-close-to B PRECISION)" (cl-destructuring-bind (precision (a-expr . a) (_b-expr . b)) (cons (funcall precision)