summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2020-07-26 22:54:33 +0200
committerPhilipp Stephani <phst@google.com>2020-07-26 22:54:33 +0200
commit73a2f5104331264656ac830c848912af9389a04b (patch)
treea0ca4c2daf6987300048cabd890c93060e69dd7c /test/src
parent3838aeb7397ce80134c70fd49f7e9e5ef7aff3e5 (diff)
downloademacs-73a2f5104331264656ac830c848912af9389a04b.tar.gz
Add another test for global module references
* test/src/emacs-module-tests.el (mod-test-globref-reordered): New unit test. * test/data/emacs-module/mod-test.c (Fmod_test_globref_reordered): New test module function. (emacs_module_init): Export it.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/emacs-module-tests.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el
index e9f13ba368b..91206156f85 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -160,6 +160,9 @@ changes."
(ert-deftest mod-test-globref-free-test ()
(should (eq (mod-test-globref-free 1 'a "test" 'b) 'ok)))
+(ert-deftest mod-test-globref-reordered ()
+ (should (equal (mod-test-globref-reordered) '(t t t nil))))
+
(ert-deftest mod-test-string-a-to-b-test ()
(should (string= (mod-test-string-a-to-b "aaa") "bbb")))