Re: [O] FIX missing case-folding in test-ob-emacs-lisp.el

2013-03-13 Thread Michael Brand
Hi Andreas

On Tue, Mar 12, 2013 at 6:12 PM, Andreas Röhler
andreas.roeh...@easy-emacs.de wrote:
 [...]
 F test-org-table/compare
 Basic: Compare field references in Calc.
 (ert-test-failed
  ((should
(equal expect result))
   :form
   (equal 
 |  | 0 | z |   | nan | uinf | -inf | inf |
 |--+---+---+---+-+--+--+-|
 |0 | x |   |   | |  |  | |
 |z |   | x |   | |  |  | |
 |  |   |   | x | |  |  | |
 |  nan |   |   |   |   x |  |  | |
 | uinf |   |   |   | |x |  | |
 | -inf |   |   |   | |  |x | |
 |  inf |   |   |   | |  |  |   x |
 #+TBLFM: @I$..@$ = if(\$1\ = \@1\, x, string(\\)); E 
 |  | 0 | z |   | nan | uinf | -inf | inf |
 |--+---+---+---+-+--+--+-|
 | 0| x |   | x | |  |  | |
 | z|   | x |   | |  |  | |
 |  | x |   | x | |  |  | |
 | nan  |   |   |   |   x |  |  | |
 | uinf |   |   |   | | x|  | |
 | -inf |   |   |   | |  | x| |
 | inf  |   |   |   | |  |  | x   |
 #+TBLFM: @I$..@$ = if(\$1\ = \@1\, x, string(\\)); E)
 [...]

This and all other “test-org-table/.*” look exactly as when I was
working on some spreadsheet features:
http://article.gmane.org/gmane.emacs.orgmode/63975

Therefore for me it seems that your lisp/org-table.el is older than
testing/lisp/test-org-table.el and does not match. Are you sure you
don’t have a mixed installation? What is the output of M-x
org-version that would show this?

Michael



Re: [O] FIX missing case-folding in test-ob-emacs-lisp.el

2013-03-13 Thread Andreas Röhler

Am 13.03.2013 18:19, schrieb Michael Brand:

Hi Andreas

On Tue, Mar 12, 2013 at 6:12 PM, Andreas Röhler
andreas.roeh...@easy-emacs.de wrote:

[...]
F test-org-table/compare
 Basic: Compare field references in Calc.
 (ert-test-failed
  ((should
(equal expect result))
   :form
   (equal 
|  | 0 | z |   | nan | uinf | -inf | inf |
|--+---+---+---+-+--+--+-|
|0 | x |   |   | |  |  | |
|z |   | x |   | |  |  | |
|  |   |   | x | |  |  | |
|  nan |   |   |   |   x |  |  | |
| uinf |   |   |   | |x |  | |
| -inf |   |   |   | |  |x | |
|  inf |   |   |   | |  |  |   x |
#+TBLFM: @I$..@$ = if(\$1\ = \@1\, x, string(\\)); E 
|  | 0 | z |   | nan | uinf | -inf | inf |
|--+---+---+---+-+--+--+-|
| 0| x |   | x | |  |  | |
| z|   | x |   | |  |  | |
|  | x |   | x | |  |  | |
| nan  |   |   |   |   x |  |  | |
| uinf |   |   |   | | x|  | |
| -inf |   |   |   | |  | x| |
| inf  |   |   |   | |  |  | x   |
#+TBLFM: @I$..@$ = if(\$1\ = \@1\, x, string(\\)); E)
[...]


This and all other “test-org-table/.*” look exactly as when I was
working on some spreadsheet features:
http://article.gmane.org/gmane.emacs.orgmode/63975

Therefore for me it seems that your lisp/org-table.el is older than
testing/lisp/test-org-table.el and does not match. Are you sure you
don’t have a mixed installation?


Hi Michael,

thanks, that might be the case. Probably installed org-mode mixes up w/ loaded 
from source.
Still trying to set up a developing environment, which should use the current 
trunk.

emacs -Q already loads org-mode now.
Maybe should unload it first.

Andreas

What is the output of M-x

org-version that would show this?

Michael






Re: [O] FIX missing case-folding in test-ob-emacs-lisp.el

2013-03-12 Thread Bastien
Hi Andreas,

Andreas Röhler andreas.roeh...@easy-emacs.de writes:

 Running tests from org-mode/testing/README failed due to missing case-folding
 Downcased result was searched while upcased was inserted

It's weird, the test does not fail for me.  Can you let me know how to
reproduce it?

 Patch attached

Thanks, let's use this fix if we reproduce the problem.

Best,

-- 
 Bastien



Re: [O] FIX missing case-folding in test-ob-emacs-lisp.el

2013-03-12 Thread Andreas Röhler

Am 12.03.2013 16:59, schrieb Bastien:

Hi Andreas,

Andreas Röhler andreas.roeh...@easy-emacs.de writes:


Running tests from org-mode/testing/README failed due to missing case-folding
 Downcased result was searched while upcased was inserted


It's weird, the test does not fail for me.  Can you let me know how to
reproduce it?




Called C-c C-c subsequently as told in

~/org-mode/testing/README

* Interactive testing from within Emacs


Maybe missing spec only affect interactive calls?





Patch attached


Thanks, let's use this fix if we reproduce the problem.

Best,






Re: [O] FIX missing case-folding in test-ob-emacs-lisp.el

2013-03-12 Thread Andreas Röhler

Am 12.03.2013 16:59, schrieb Bastien:

Hi Andreas,

Andreas Röhler andreas.roeh...@easy-emacs.de writes:


Running tests from org-mode/testing/README failed due to missing case-folding
 Downcased result was searched while upcased was inserted


It's weird, the test does not fail for me.  Can you let me know how to
reproduce it?


Patch attached


Thanks, let's use this fix if we reproduce the problem.

Best,



Below the result from Emacs -Q

Do you have debug-on-error activated?

Cheers

;;


Selector: \\(org\\|ob\\)
Passed: 117
Failed: 61 (48 unexpected)
Total:  178/178

Started at:   2013-03-12 18:08:00+0100
Finished.
Finished at:  2013-03-12 18:08:08+0100

..FFfFFFF.FF...F..F...F.F..FFF..FF...FF..F.F..F..F.FF..FF..F..

F ob-exp/evaluate-all-executables-in-order
(void-function org-babel-exp-process-buffer)

F ob-exp/export-call-line-information
(void-function org-babel-exp-process-buffer)

F ob-exp/export-with-header-argument
(void-function org-babel-exp-process-buffer)

F ob-exp/export-with-name
(void-function org-babel-exp-process-buffer)

F ob-exp/exports-both
Test the :exports both header argument.
(void-function org-babel-exp-process-buffer)

F ob-exp/exports-inline
(void-function org-babel-exp-process-buffer)

F ob-exp/mixed-blocks-with-exports-both
(void-function org-element-map)

F ob-exp/noweb-no-export-and-exports-both
(void-function org-babel-exp-process-buffer)

F ob-exp/noweb-on-export
Noweb header arguments export correctly.
(void-function org-element-map)

F ob-exp/noweb-on-export-with-exports-results
Noweb header arguments export correctly using :exports results.
(void-function org-element-map)

F ob-exp/noweb-strip-export-ensure-strips
(error No org-babel-execute function for sh!)

F test-ob-exp/org-babel-exp-src-blocks/w-no-file
Testing export from buffers which are not visiting any file.
(file-error Cannot open load file ox-html)

F test-ob-exp/org-babel-exp-src-blocks/w-no-headers
Testing export without any headlines in the Org mode file.
(file-error Cannot open load file ox-html)

F test-ob-exp/org-babel-exp-src-blocks/w-no-headers2
Testing export without any headlines in the org-mode file.
(void-function org-export-to-file)

F test-ob-lob/do-not-eval-lob-lines-in-example-blocks-on-export
(file-error Cannot open load file ox)

F test-ob-lob/export-lob-lines
Test the export of a variety of library babel call lines.
(void-function org-babel-exp-process-buffer)

F test-ob/org-babel-remove-result--results-default
Test `org-babel-remove-result' with default :results.
(error No org-babel-execute function for sh!)

F test-ob/org-babel-results-indented-wrap
Ensure that wrapped results are inserted correction when indented.
(error No org-babel-execute function for sh!)

F test-ob/results-in-narrowed-buffer
Test block execution in a narrowed buffer.
(ert-test-failed
 ((should-not
   (re-search-forward ^#\\+RESULTS: nil t))
  :form
  (re-search-forward ^#\\+RESULTS: nil t)
  :value 66))

F test-org-babel/combining-scalar-and-raw-result-types
(error No org-babel-execute function for sh!)

F test-org-babel/inline-src-blocks
(error No org-babel-execute function for sh!)

F test-org-babel/inline-src_blk-default-results-replace-line-1
(error No org-babel-execute function for sh!)

F test-org-babel/just-one-results-block
Test that evaluating two times the same code block does not result in a
(error No org-babel-execute function for sh!)

F test-org-babel/nested-code-block
Test nested code blocks inside code blocks don't cause problems.
(error No org-babel-execute function for org!)

F test-org-babel/partial-nested-code-block
Test nested code blocks inside code blocks don't cause problems.
(error No org-babel-execute function for org!)

F test-org-clock/clocktable
Test clocktable specifications.
(error Bad timestamp `[nil]'\nError was: (Not a standard Org-mode time string: 
[nil]))

F test-org-footnote/delete
Test `org-footnote-delete' specifications.
(ert-test-failed
 ((should
   (equal Para\n\n\nOutside footnote.
  (org-test-with-temp-text Para[1]\n\n[1] para1\n\npara2\n\n\nOutside 
footnote.
(org-footnote-delete 1)
(org-trim ...
  :form
  (equal Para\n\n\nOutside footnote. Para\n\npara2\n\n\nOutside 
footnote.)
  :value nil :explanation
  (arrays-of-different-length 24 31 Para\n\n\nOutside footnote. 
Para\n\npara2\n\n\nOutside footnote. first-mismatch-at 6)))

F test-org-list/to-html
Test `org-list-to-html' specifications.
(ert-test-failed
 ((should
   (equal ul class=\org-ul\\nlia\n/li\n/ul
  (with-temp-buffer
(insert !-- BEGIN RECEIVE ORGLST name --\n!-- END RECEIVE