Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cl-base64
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Nyxt
cl-base64
Commits
e0713e35
Commit
e0713e35
authored
22 years ago
by
Kevin M. Rosenberg
Browse files
Options
Downloads
Patches
Plain Diff
r4497: Auto commit for Debian build
parent
268e0797
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
base64-tests.lisp
+29
-33
29 additions, 33 deletions
base64-tests.lisp
base64.asd
+2
-2
2 additions, 2 deletions
base64.asd
debian/control
+1
-1
1 addition, 1 deletion
debian/control
with
32 additions
and
36 deletions
base64-tests.lisp
+
29
−
33
View file @
e0713e35
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;;; Programmer: Kevin M. Rosenberg
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Jan 2003
;;;; Date Started: Jan 2003
;;;;
;;;;
;;;; $Id: base64-tests.lisp,v 1.
9
2003/04/15 16:
15:21
kevin Exp $
;;;; $Id: base64-tests.lisp,v 1.
10
2003/04/15 16:
21:43
kevin Exp $
;;;; *************************************************************************
;;;; *************************************************************************
(
in-package
:cl-user
)
(
in-package
:cl-user
)
...
@@ -19,48 +19,44 @@
...
@@ -19,48 +19,44 @@
(
defun
test-base64
()
(
defun
test-base64
()
(
setq
*break-on-test-failures*
t
)
(
setq
*break-on-test-failures*
t
)
(
with-tests
(
:name
"cl-base64 tests"
)
(
do*
((
length
0
(
+
3
length
))
(
do*
((
length
0
(
+
3
length
))
(
string
(
make-string
length
)
(
make-string
length
))
(
string
(
make-string
length
)
(
make-string
length
))
(
usb8
(
make-usb8-array
length
)
(
make-usb8-array
length
))
(
usb8
(
make-usb8-array
length
)
(
make-usb8-array
length
))
(
integer
(
random
(
expt
10
length
))
(
random
(
expt
10
length
))))
(
integer
(
random
(
expt
10
length
))
(
random
(
expt
10
length
))))
((
>=
length
300
))
((
>=
length
300
))
(
dotimes
(
i
length
)
(
dotimes
(
i
length
)
(
declare
(
fixnum
i
))
(
declare
(
fixnum
i
))
(
let
((
code
(
random
256
)))
(
let
((
code
(
random
256
)))
(
setf
(
schar
string
i
)
(
code-char
code
))
(
setf
(
schar
string
i
)
(
code-char
code
))
(
setf
(
aref
usb8
i
)
code
)))
(
setf
(
aref
usb8
i
)
code
)))
(
do*
((
columns
0
(
+
columns
4
)))
(
do*
((
columns
0
(
+
columns
4
)))
((
>
columns
length
))
((
>
columns
length
))
;; Test against cl-base64 routines
;; Test against cl-base64 routines
(
test
integer
(
base64-string-to-integer
(
assert
(
=
integer
(
base64-string-to-integer
(
integer-to-base64-string
integer
:columns
columns
))
(
integer-to-base64-string
integer
:columns
columns
))))
:test
#'
eql
)
(
assert
(
string=
(
base64-string-to-string
(
test
string
(
base64-string-to-string
(
string-to-base64-string
string
:columns
columns
))))
(
string-to-base64-string
string
:columns
columns
))
:test
#'
string=
)
;; Test against AllegroCL built-in routines
;; Test against AllegroCL built-in routines
#+
allegro
#+
allegro
(
progn
(
progn
(
test
integer
(
excl:base64-string-to-integer
(
assert
(
=
integer
(
excl:base64-string-to-integer
(
integer-to-base64-string
integer
:columns
columns
)))
(
integer-to-base64-string
integer
:columns
columns
))))
(
test
integer
(
base64-string-to-integer
(
assert
(
=
integer
(
base64-string-to-integer
(
excl:integer-to-base64-string
integer
)))
(
excl:integer-to-base64-string
integer
))))
(
test
(
string-to-base64-string
string
:columns
columns
)
(
assert
(
string=
(
string-to-base64-string
string
:columns
columns
)
(
excl:usb8-array-to-base64-string
usb8
(
excl:usb8-array-to-base64-string
usb8
(
if
(
zerop
columns
)
(
if
(
zerop
columns
)
nil
nil
columns
))
columns
))))
:test
#'
string=
)
(
assert
(
string=
string
(
base64-string-to-string
(
test
string
(
base64-string-to-string
(
excl:usb8-array-to-base64-string
(
excl:usb8-array-to-base64-string
usb8
usb8
(
if
(
zerop
columns
)
(
if
(
zerop
columns
)
nil
nil
columns
))))))))
columns
)))
(
format
t
"~&All tests passed~%"
)
:test
#'
string=
)))))
t
)
t
)
...
...
This diff is collapsed.
Click to expand it.
base64.asd
+
2
−
2
View file @
e0713e35
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;;; Programmer: Kevin M. Rosenberg
;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Dec 2002
;;;; Date Started: Dec 2002
;;;;
;;;;
;;;; $Id: base64.asd,v 1.1
8
2003/04/15 16:
12:01
kevin Exp $
;;;; $Id: base64.asd,v 1.1
9
2003/04/15 16:
21:43
kevin Exp $
;;;; *************************************************************************
;;;; *************************************************************************
(
in-package
:asdf
)
(
in-package
:asdf
)
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
(
pushnew
:base64
cl:*features*
))
(
pushnew
:base64
cl:*features*
))
;; depends-on only needed for test-op
;; depends-on only needed for test-op
:depends-on
(
:kmrcl
:tester
)
:depends-on
(
:kmrcl
)
:components
:components
((
:file
"package"
)
((
:file
"package"
)
...
...
This diff is collapsed.
Click to expand it.
debian/control
+
1
−
1
View file @
e0713e35
...
@@ -7,7 +7,7 @@ Standards-Version: 3.5.9.0
...
@@ -7,7 +7,7 @@ Standards-Version: 3.5.9.0
Package: cl-base64
Package: cl-base64
Architecture: all
Architecture: all
Depends: ${shlibs:Depends}, common-lisp-controller (>= 3.47), cl-kmrcl
, cl-tester
Depends: ${shlibs:Depends}, common-lisp-controller (>= 3.47), cl-kmrcl
Description: Common Lisp package to encode and decode base64 with URI support
Description: Common Lisp package to encode and decode base64 with URI support
This package provides highly optimized base64 encoding and decoding.
This package provides highly optimized base64 encoding and decoding.
Besides conversion to and from strings, integer conversions are supported.
Besides conversion to and from strings, integer conversions are supported.
...
...
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