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/emacs-test-functions.sh | |
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/emacs-test-functions.sh')
-rwxr-xr-x | test/emacs-test-functions.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/emacs-test-functions.sh b/test/emacs-test-functions.sh new file mode 100755 index 00000000..0e1f9fc7 --- /dev/null +++ b/test/emacs-test-functions.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +test_description="emacs test function sanity" +. test-lib.sh + +test_begin_subtest "emacs test function sanity" +test_emacs_expect_t 't' + +test_done |