Add ERT for table alignment within Org buffer
commitce1a8465b5261b4c678489fc443bdcacecdf7e96
authorMichael Brand <michael.ch.brand@gmail.com>
Fri, 28 Dec 2012 13:59:17 +0000 (28 14:59 +0100)
committerBastien Guerry <bzg@altern.org>
Sat, 29 Dec 2012 13:33:52 +0000 (29 14:33 +0100)
treeec7f356104e4b6044f47a67a1174a70553fe41f8
parent710f445768cb9eaf6ae7c7c17c11fc16016befca
Add ERT for table alignment within Org buffer

* testing/lisp/test-org-table.el (test-org-table/align): New
ert-deftest for table alignment within Org buffer.
* testing/org-test.el (org-test-table-target-expect): New defun.

The new function org-test-table-target-expect is to simplify writing
spreadsheet ERT by providing just a target table to apply the formula
to, the expected result table and the table formula with optionally
additional variants.  The variants typically are to check the same
result with a Lisp formula and a Calc formula.  test-org-table.el is
also a howto example collection as a user documentation.
testing/lisp/test-org-table.el
testing/org-test.el