Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Karsten Poeck
ansi-test
Commits
b3a8c2e3
Commit
b3a8c2e3
authored
Sep 03, 2003
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More EXPT tests.
parent
b350ad71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
ansi-tests/expt.lsp
ansi-tests/expt.lsp
+34
-3
No files found.
ansi-tests/expt.lsp
View file @
b3a8c2e3
...
...
@@ -27,7 +27,7 @@
t)
(deftest expt.3
(loop for i = (random 1
0000.0s0
)
(loop for i = (random 1
.0s3
)
repeat 1000
always (eql (expt i 0) 1.0s0))
t)
...
...
@@ -39,19 +39,50 @@
t)
(deftest expt.5
(loop for i = (random 1.0d
2
0)
(loop for i = (random 1.0d
1
0)
repeat 1000
always (eql (expt i 0) 1.0d0))
t)
(deftest expt.6
(loop for i = (random 1.0l
5
0)
(loop for i = (random 1.0l
1
0)
repeat 1000
always (eql (expt i 0) 1.0l0))
t)
(deftest expt.7
(loop for i from -1000 to 1000
for c = (complex i i)
always (eql (expt c 0) 1))
t)
(deftest expt.8
(loop for i = (random 1.0s3)
for c = (complex i i)
repeat 1000
always (eql (expt c 0) #c(1.0s0 0.0s0)))
t)
(deftest expt.9
(loop for i = (random 1.0f6)
for c = (complex i i)
repeat 1000
always (eql (expt c 0) #c(1.0f0 0.0f0)))
t)
(deftest expt.10
(loop for i = (random 1.0d10)
for c = (complex i i)
repeat 1000
always (eql (expt c 0) #c(1.0d0 0.0d0)))
t)
(deftest expt.11
(loop for i = (random 1.0l10)
for c = (complex i i)
repeat 1000
always (eql (expt c 0) #c(1.0l0 0.0l0)))
t)
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