Re: [O] [babel] Trying to add ERT test cases

2011-09-21 Thread Eric Schulte
Martyn Jago writes: > Hi Eric > > Eric Schulte writes: > Footnotes: [1] , | org-test-with-temp-text is a Lisp macro in `org-test.el'. | | (org-test-with-temp-text TEXT &rest BODY) | | Run body in a temporary buffer with Org-mode as the active | mode

Re: [O] [babel] Trying to add ERT test cases

2011-09-20 Thread Martyn Jago
Hi Eric Eric Schulte writes: >>> >>> Footnotes: [1] , >>> | org-test-with-temp-text is a Lisp macro in `org-test.el'. >>> | >>> | (org-test-with-temp-text TEXT &rest BODY) >>> | >>> | Run body in a temporary buffer with Org-mode as the active >>> | mode holding TEXT. If the string "" appe

Re: [O] [babel] Trying to add ERT test cases

2011-09-20 Thread Eric Schulte
>> >> Footnotes: [1] , >> | org-test-with-temp-text is a Lisp macro in `org-test.el'. >> | >> | (org-test-with-temp-text TEXT &rest BODY) >> | >> | Run body in a temporary buffer with Org-mode as the active >> | mode holding TEXT. If the string "" appears in TEXT >> | then remove it and plac

Re: [O] [babel] Trying to add ERT test cases

2011-09-20 Thread Martyn Jago
Hi Eric Eric Schulte writes: > Martyn Jago writes: > [...] >> >> (ert-deftest ob-tangle/speed-command-r () >> (let ((org-use-speed-commands t)) >> (with-temp-buffer >> (org-mode) >> (insert "* Speed command") >> (goto-char (point-at-bol)) >> ;; ensure default spee

Re: [O] [babel] Trying to add ERT test cases

2011-09-20 Thread Sebastien Vauban
Hi Eric, Eric Schulte wrote: >> * Test >> >> #+begin_src emacs-lisp >> (ert-deftest ob-tangle/speed-command-r () >> "Test that speed command `r' does demote the headline." >> (org-test-at-id "4ee368b8-cf7c-4269-98c0-b28dcf94ff2b" >> (goto-char (point-at-bol)) >> (org-self-insert-comman

Re: [O] [babel] Trying to add ERT test cases

2011-09-19 Thread Eric Schulte
> * Test > > #+begin_src emacs-lisp > (ert-deftest ob-tangle/speed-command-r () > "Test that speed command `r' does demote the headline." > (org-test-at-id "4ee368b8-cf7c-4269-98c0-b28dcf94ff2b" > (goto-char (point-at-bol)) > (org-self-insert-command ?r) > (goto-char (point-at-bol))

Re: [O] [babel] Trying to add ERT test cases

2011-09-19 Thread Sebastien Vauban
Hi Eric, Eric Schulte wrote: > "Sebastien Vauban" writes: >> >> * Test >> >> #+begin_src emacs-lisp >> (ert-deftest ob-tangle/speed-command-r () >> "Test that speed command `r' does demote the headline." >> (org-test-at-id "4ee368b8-cf7c-4269-98c0-b28dcf94ff2b" >> (goto-char (point-at-bol

Re: [O] [babel] Trying to add ERT test cases

2011-09-19 Thread Sebastien Vauban
Hi Martyn, Martyn Jago wrote: > "Sebastien Vauban" > writes: > >> * Test >> >> #+begin_src emacs-lisp >> (ert-deftest ob-tangle/speed-command-r () >> "Test that speed command `r' does demote the headline." >> (org-test-at-id "4ee368b8-cf7c-4269-98c0-b28dcf94ff2b" >> (goto-char (point-at-b

Re: [O] [babel] Trying to add ERT test cases

2011-09-19 Thread Eric Schulte
Martyn Jago writes: [...] > > (ert-deftest ob-tangle/speed-command-r () > (let ((org-use-speed-commands t)) > (with-temp-buffer > (org-mode) > (insert "* Speed command") > (goto-char (point-at-bol)) > ;; ensure default speed commands return t > (should (org-spee

Re: [O] [babel] Trying to add ERT test cases

2011-09-19 Thread Martyn Jago
Hi Sebastien "Sebastien Vauban" writes: > Hi, > > I'd like to really contrib more on test cases, in particular every time I'd > see something problematic. My goal (SOMEDAY/MAYBE) would be to (be able to) > report any problem with an attached ERT test case... > > Last experience: for some unknown

Re: [O] [babel] Trying to add ERT test cases

2011-09-19 Thread Eric Schulte
"Sebastien Vauban" writes: > Hi, > > I'd like to really contrib more on test cases, in particular every time I'd > see something problematic. My goal (SOMEDAY/MAYBE) would be to (be able to) > report any problem with an attached ERT test case... > That would certainly be the ideal for a bug repo

[O] [babel] Trying to add ERT test cases

2011-09-19 Thread Sebastien Vauban
Hi, I'd like to really contrib more on test cases, in particular every time I'd see something problematic. My goal (SOMEDAY/MAYBE) would be to (be able to) report any problem with an attached ERT test case... Last experience: for some unknown reason (maybe a Lisp nesting exceeded, though), it (ra