diff options
Diffstat (limited to 'test/lisp')
-rw-r--r-- | test/lisp/subr-tests.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index 0023680738d..b3c04cdc9a8 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el @@ -125,6 +125,13 @@ (should (equal (macroexpand-all '(when a b c d)) '(if a (progn b c d))))) +(ert-deftest subr-test-xor () + "Test `xor'." + (should-not (xor nil nil)) + (should (eq (xor nil 'true) 'true)) + (should (eq (xor 'true nil) 'true)) + (should-not (xor t t))) + (ert-deftest subr-test-version-parsing () (should (equal (version-to-list ".5") '(0 5))) (should (equal (version-to-list "0.9 alpha1") '(0 9 -3 1))) |