emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call for more ert tests


From: John Wiegley
Subject: Re: call for more ert tests
Date: Mon, 24 Jun 2013 14:59:28 -0500
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (darwin)

>>>>> Óscar Fuentes <address@hidden> writes:

> I wonder about the possibility of making Emacs testing an "interesting"
> task. Something like a test framework which is complete and expressive
> enough to allow describing testable conditions on a very high level way.

One thing that would help with that is to allow structural pattern matching.
For example, say I have a function `foo` which returns a list '(a b c), but
all I care about is that `b` is `b`.  Then I could write:

    (shouldBe (foo) '(_ b _))

`shouldBe` then raises an exception if the pattern fails to match.

John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]