Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
93c178ab
Commit
93c178ab
authored
Sep 10, 2003
by
pfdietz
Browse files
Random testing revealed (lcm 0 0) broke in sbcl. Added tests for this and related cases.
parent
64d12ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ansi-tests/lcm.lsp
View file @
93c178ab
...
@@ -78,6 +78,23 @@
...
@@ -78,6 +78,23 @@
always (eql (apply #'lcm (make-list i :initial-element 1)) 1))
always (eql (apply #'lcm (make-list i :initial-element 1)) 1))
t)
t)
(deftest lcm.9
(lcm 0 0)
0)
(deftest lcm.10
(lcm 1 0 0)
0)
(deftest lcm.11
(lcm 0 1 0)
0)
(deftest lcm.12
(lcm 0 0 1)
0)
(deftest lcm.order.1
(deftest lcm.order.1
(let ((i 0) x y)
(let ((i 0) x y)
(values
(values
...
@@ -100,3 +117,5 @@
...
@@ -100,3 +117,5 @@
(lcm (progn (incf i) 0))
(lcm (progn (incf i) 0))
i))
i))
0 1)
0 1)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment