Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansi-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cmucl
ansi-test
Commits
cb6beec3
Commit
cb6beec3
authored
20 years ago
by
camm
Browse files
Options
Downloads
Patches
Plain Diff
Backport minimal ansi-test patches from HEAD to enable running of the random tester
parent
fb346e77
Branches
Version_2_6_2pre
Version_2_6_3pre
Version_2_6_4pre
Version_2_6_5pre
Version_2_6_6pre
Version_2_6_7pre
Version_2_6_8pre
Tags
Version_2_6_2
Version_2_6_2c2
Version_2_6_3
Version_2_6_4
Version_2_6_5
Version_2_6_6
Version_2_6_7
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansi-tests/ansi-aux.lsp
+29
-0
29 additions, 0 deletions
ansi-tests/ansi-aux.lsp
ansi-tests/cl-symbol-names.lsp
+3
-0
3 additions, 0 deletions
ansi-tests/cl-symbol-names.lsp
ansi-tests/gclload1.lsp
+22
-0
22 additions, 0 deletions
ansi-tests/gclload1.lsp
with
54 additions
and
0 deletions
ansi-tests/ansi-aux.lsp
+
29
−
0
View file @
cb6beec3
...
...
@@ -1426,3 +1426,32 @@ the condition to go uncaught if it cannot be classified."
(unsigned-byte 32) float short-float
single-float double-float long-float
nil character base-char symbol boolean null))
(defun random-partition (n p)
"Partition n into p numbers, each >= 1. Return list of numbers."
(assert (<= 1 p))
#|
(cond
((= p 1) (list n))
((< n p) (make-list p :initial-element 1))
(t
(let ((n1 (1+ (random (floor n p)))))
(cons n1 (random-partition (- n n1) (1- p)))))))
|#
(cond
((= p 1) (list n))
((= n 0) (make-list p :initial-element 0))
(t (let* ((r (random p))
(n1 (random (1+ n))))
(cond
((= r 0)
(cons n1 (random-partition (- n n1) (1- p))))
((= r (1- p))
(append (random-partition (- n n1) (1- p)) (list n1)))
(t
(let* ((n2 (random (1+ (- n n1))))
(n3 (- n n1 n2)))
(append (random-partition n2 r)
(list n1)
(random-partition n3 (- p 1 r))))))))))
This diff is collapsed.
Click to expand it.
ansi-tests/cl-symbol-names.lsp
+
3
−
0
View file @
cb6beec3
...
...
@@ -2145,6 +2145,9 @@
*cl-standard-generic-function-symbols*
'(declare)))))
(defparameter *cl-function-or-accessor-symbols*
(append *cl-function-symbols* *cl-accessor-symbols*))
(defparameter *cl-non-variable-constant-symbols*
(set-difference
*cl-symbols*
...
...
This diff is collapsed.
Click to expand it.
ansi-tests/gclload1.lsp
+
22
−
0
View file @
cb6beec3
...
...
@@ -6,6 +6,28 @@
(load "cl-test-package.lsp")
(in-package :cl-test)
(load "universe.lsp")
(compile-and-load "random-aux.lsp")
(compile-and-load "ansi-aux.lsp")
;;; (unless (probe-file "ansi-aux.o") (compile-file "ansi-aux.lsp"))
;;; (load "ansi-aux.o")
(load "cl-symbol-names.lsp")
;(load "notes.lsp")
(setq *compile-verbose* nil
*compile-print* nil
*load-verbose* nil)
#+cmu (setq ext:*gc-verbose* nil)
#+gcl (setq compiler:*suppress-compiler-notes* t
compiler:*suppress-compiler-warnings* t
compiler:*compile-verbose* nil
compiler:*compile-print* nil)
#+lispworks (setq compiler::*compiler-warnings* nil)
#+ecl (setq c:*suppress-compiler-warnings* t
c:*suppress-compiler-notes* t)
#+clisp (setq custom::*warn-on-floating-point-contagion* nil)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment