emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] ERT: body of org-test-with-temp-text-in-file


From: Bastien
Subject: Re: [O] ERT: body of org-test-with-temp-text-in-file
Date: Sat, 15 Dec 2012 09:19:48 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Michael,

Michael Brand <address@hidden> writes:

> The doc of org-test-with-temp-text-in-file says
>
>     (org-test-with-temp-text-in-file TEXT &rest BODY)
>     Run body in a temporary file buffer with Org-mode as the active mode.
>
> so I thought I can write:
>
> #+BEGIN_SRC emacs-lisp
>   (ert-deftest trial/fail ()
>     (org-test-with-temp-text-in-file "
>   |   |
>   "
>       (forward-line)
>       (should (org-at-table-p))))
> #+END_SRC

Now you can.  There were no real reason to force using (progn ...) 
here so I removed that and updated the test suite accordingly.

Let me know if this works for you now.

Best,

-- 
 Bastien



reply via email to

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