aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorAndrea Corallo2020-12-26 12:34:58 +0100
committerAndrea Corallo2020-12-26 12:34:58 +0100
commitfc02c8458d636e682b079a68f2ee7347e0299132 (patch)
tree03e8b9a7f5cc5ce0de99d9eef42a90eb4202c6da /test/src
parentfcd8c60182efc8bfe7bad11fb74489fe5df28d6b (diff)
downloademacs-fc02c8458d636e682b079a68f2ee7347e0299132.tar.gz
emacs-fc02c8458d636e682b079a68f2ee7347e0299132.zip
* test/src/comp-tests.el (comp-tests-type-spec-tests): Add two more test.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/comp-tests.el16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index 22065f8f6e4..e1c13598ad6 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -1018,7 +1018,21 @@ Return a list of results."
1018 x)) 1018 x))
1019 (or null (integer 4 9))) 1019 (or null (integer 4 9)))
1020 1020
1021 ;; 33 No float range support. 1021 ;; 33
1022 ((defun comp-tests-ret-type-spec-f (x)
1023 (when (or (> x 3)
1024 (< x 10))
1025 x))
1026 (or null integer))
1027
1028 ;; 34
1029 ((defun comp-tests-ret-type-spec-f (x)
1030 (when (or (< x 3)
1031 (> x 10))
1032 x))
1033 (or null (integer * 2) (integer 11 *)))
1034
1035 ;; 35 No float range support.
1022 ((defun comp-tests-ret-type-spec-f (x) 1036 ((defun comp-tests-ret-type-spec-f (x)
1023 (when (> x 1.0) 1037 (when (> x 1.0)
1024 x)) 1038 x))