Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
19c4f803
Commit
19c4f803
authored
Jan 22, 2002
by
Niels Möller
Browse files
New testcase.
Rev: src/nettle/testsuite/base64-test.c:1.1
parent
64b4c5d0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/nettle/testsuite/base64-test.c
0 → 100644
View file @
19c4f803
#include "testutils.h"
#include "base64.h"
int
test_main
(
void
)
{
test_armor
(
&
nettle_base64
,
0
,
""
,
""
);
test_armor
(
&
nettle_base64
,
1
,
"H"
,
"SA=="
);
test_armor
(
&
nettle_base64
,
2
,
"He"
,
"SGU="
);
test_armor
(
&
nettle_base64
,
3
,
"Hel"
,
"SGVs"
);
test_armor
(
&
nettle_base64
,
4
,
"Hell"
,
"SGVsbA=="
);
test_armor
(
&
nettle_base64
,
5
,
"Hello"
,
"SGVsbG8="
);
test_armor
(
&
nettle_base64
,
6
,
"Hello"
,
"SGVsbG8A"
);
test_armor
(
&
nettle_base64
,
4
,
"
\377\377\377\377
"
,
"/////w=="
);
SUCCESS
();
}
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