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
80cb74f4
Commit
80cb74f4
authored
Jun 20, 2004
by
pfdietz
Browse files
Change comparison to float to avoid rational overflow
parent
d8649021
Changes
1
Hide whitespace changes
Inline
Side-by-side
ansi-tests/number-comparison.lsp
View file @
80cb74f4
...
...
@@ -1188,7 +1188,7 @@
(deftest bignum.float.compare.1a
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1201,7 +1201,7 @@
(deftest bignum.float.compare.1b
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1214,7 +1214,7 @@
(deftest bignum.float.compare.2a
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1227,7 +1227,7 @@
(deftest bignum.float.compare.2b
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1240,7 +1240,7 @@
(deftest bignum.float.compare.3a
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1253,7 +1253,7 @@
(deftest bignum.float.compare.3b
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1266,7 +1266,7 @@
(deftest bignum.float.compare.4a
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1279,7 +1279,7 @@
(deftest bignum.float.compare.4b
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1292,7 +1292,7 @@
(deftest bignum.float.compare.5a
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1305,7 +1305,7 @@
(deftest bignum.float.compare.5b
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1318,7 +1318,7 @@
(deftest bignum.float.compare.6a
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
@@ -1331,7 +1331,7 @@
(deftest bignum.float.compare.6b
(loop for x in *floats*
when (or (<= (abs x) 1)
when (or (<= (abs x) 1
.0
)
(< (abs (log (abs x))) 10000))
nconc
(loop for r = (1+ (random (ash 1 (random 32))))
...
...
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