[Bese-devel] Re: New patches to fiveam: 30-Sep-2006

Attila Lendvai attila.lendvai at gmail.com
Sun Oct 1 13:45:22 UTC 2006


i generally agree with both mails and i'm open for changes. here are example
usages:

(is-equal (usec-of local-time) 0
              (day-of local-time) -1
              (sec-of local-time) 0)

(is-equal (decode-universal-time (universal-time (encode-local-time 1 2 3 4
5 6 2008)))
            (values 2 3 4 5 6 2008 3 * *))

(is-string= (format-timestring (encode-local-time 1 2 3 4 5 6 2008)
:omit-timezone-p t)
              "2008-06-05T04:03:02.000001"

              (format-timestring (encode-local-time 1 2 3 4 5 6 2008
+utc-zone+) :use-zulu-p t)
              "2008-06-05T04:03:02.000001Z"

              (format-timestring (encode-local-time 12345678 2 3 4 5 6 2008
+utc-zone+) :use-zulu-p nil)
              "2008-06-05T04:03:02.12345678+00:00")

what i would like to keep is the ability to give setf-like pairs of
arguments. i'm not sure why you propose extra parens in this:

(is-every string=
  ("a" (foo))
  ("b" (bar)))

as of (is (PREDICATE (values EXPECTED) (values ACTUAL))): it would be good
if 'is' supported multiple entries, but if it's not easily doable i guess i
can define local macros to aachive the setf-like syntax.

-- 
- attila

"- The truth is that I've been too considerate, and so became
unintentionally cruel...
- I understand.
- No, you don't understand! We don't speak the same language!"
(Ingmar Bergman - Smultronstället)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/bese-devel/attachments/20061001/443c6afc/attachment.html>


More information about the bese-devel mailing list