diff options
author | David Edmondson <dme@dme.org> | 2012-01-24 16:14:05 +0000 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-01-25 07:25:44 -0400 |
commit | 260975e8aff635b6b99db835ee8d40ec33ee916c (patch) | |
tree | 05cee5def71b7130da493278126a6a76d4919b46 /test/README | |
parent | 2903b32f79dcf7789a2b015c48194cb40ac71462 (diff) |
test: Add `test_emacs_expect_t'.
Add a new test function to allow simpler testing of emacs
functionality.
`test_emacs_expect_t' takes one argument - a lisp expression to
evaluate. The test passes if the expression returns `t', otherwise it
fails and the output is reported to the tester.
Diffstat (limited to 'test/README')
-rw-r--r-- | test/README | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/README b/test/README index 44ff653a..43656a35 100644 --- a/test/README +++ b/test/README @@ -202,6 +202,14 @@ library for your script to use. tests that may run in the same Emacs instance. Use `let' instead so the scope of the changed variables is limited to a single test. + test_emacs_expect_t <emacs-lisp-expressions> + + This function executes the provided emacs lisp script within + emacs in a manner similar to 'test_emacs'. The expressions should + return the value `t' to indicate that the test has passed. If the + test does not return `t' then it is considered failed and all data + returned by the test is reported to the tester. + test_done Your test script must have test_done at the end. Its purpose |