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
a632f885
Commit
a632f885
authored
Dec 02, 2004
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test for RANDOM that was failing in sbcl
parent
ca519f95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ansi-tests/random.lsp
ansi-tests/random.lsp
+9
-0
No files found.
ansi-tests/random.lsp
View file @
a632f885
...
...
@@ -82,6 +82,15 @@
collect (list x r))
nil)
(deftest random.8
(let* ((f1 '(lambda (x) (random (if x 10 20))))
(f2 (compile nil f1)))
(values
(loop repeat 100 always (<= 0 (funcall f2 t) 9))
(loop repeat 100 always (<= 0 (funcall f2 nil) 19))))
t t)
;;; Do more statistical tests here
\ No newline at end of file
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