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
A
alexandria
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Momchil Ivanov
alexandria
Commits
36800ad1
Commit
36800ad1
authored
Jan 20, 2012
by
Jyrki Jaakkola
Committed by
Nikodemus Siivola
Jan 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make Alexandria work with readtable-case :INVERT
parent
d92432dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
tests.lisp
tests.lisp
+10
-10
types.lisp
types.lisp
+4
-4
No files found.
tests.lisp
View file @
36800ad1
...
...
@@ -1584,18 +1584,18 @@
:inherited
)
(
deftest
format-symbol.1
(
let
((
s
(
format-symbol
nil
"X-~D"
13
)))
(
let
((
s
(
format-symbol
nil
'
#:x-~d
13
)))
(
list
(
symbol-package
s
)
(
s
ymbol-name
s
)))
(
nil
"X-13"
))
(
s
tring=
(
string
'
#:x-13
)
(
symbol-name
s
)
)))
(
nil
t
))
(
deftest
format-symbol.2
(
format-symbol
:keyword
"SYM-~A"
:bolic
)
(
format-symbol
:keyword
'
#:sym-~a
(
string
:bolic
)
)
:sym-bolic
)
(
deftest
format-symbol.3
(
let
((
*package*
(
find-package
:cl
)))
(
format-symbol
t
"FIND-~A"
'package
))
(
format-symbol
t
'
#:find-~a
(
string
'package
)
))
find-package
)
(
deftest
make-keyword.1
...
...
@@ -1657,12 +1657,12 @@
(
macrolet
((
test
(
type
numbers
)
`
(
deftest
,
(
format-symbol
t
"CDR5.~A"
type
)
`
(
deftest
,
(
format-symbol
t
'
#:cdr5.~a
(
string
type
)
)
(
let
((
numbers
,
numbers
))
(
values
(
mapcar
(
of-type
',
(
format-symbol
t
"NEGATIVE-~A"
type
))
numbers
)
(
mapcar
(
of-type
',
(
format-symbol
t
"NON-POSITIVE-~A"
type
))
numbers
)
(
mapcar
(
of-type
',
(
format-symbol
t
"NON-NEGATIVE-~A"
type
))
numbers
)
(
mapcar
(
of-type
',
(
format-symbol
t
"POSITIVE-~A"
type
))
numbers
)))
(
values
(
mapcar
(
of-type
',
(
format-symbol
t
'
#:negative-~a
(
string
type
)
))
numbers
)
(
mapcar
(
of-type
',
(
format-symbol
t
'
#:non-positive-~a
(
string
type
)
))
numbers
)
(
mapcar
(
of-type
',
(
format-symbol
t
'
#:non-negative-~a
(
string
type
)
))
numbers
)
(
mapcar
(
of-type
',
(
format-symbol
t
'
#:positive-~a
(
string
type
)
))
numbers
)))
(
t
t
t
nil
nil
nil
nil
)
(
t
t
t
t
nil
nil
nil
)
(
nil
nil
nil
t
t
t
t
)
...
...
types.lisp
View file @
36800ad1
...
...
@@ -34,10 +34,10 @@ ARRAY-DIMENSION-LIMIT."
type
(
if
(
equal
range-beg
'
'*
)
inf
(
ensure-car
range-beg
))
(
if
(
equal
range-end
'
'*
)
inf
(
ensure-car
range-end
))))))
(
let*
((
negative-name
(
make-subtype-name
'
#:negative-~
A
))
(
non-positive-name
(
make-subtype-name
'
#:non-positive-~
A
))
(
non-negative-name
(
make-subtype-name
'
#:non-negative-~
A
))
(
positive-name
(
make-subtype-name
'
#:positive-~
A
))
(
let*
((
negative-name
(
make-subtype-name
'
#:negative-~
a
))
(
non-positive-name
(
make-subtype-name
'
#:non-positive-~
a
))
(
non-negative-name
(
make-subtype-name
'
#:non-negative-~
a
))
(
positive-name
(
make-subtype-name
'
#:positive-~
a
))
(
negative-p-name
(
make-predicate-name
negative-name
))
(
non-positive-p-name
(
make-predicate-name
non-positive-name
))
(
non-negative-p-name
(
make-predicate-name
non-negative-name
))
...
...
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