Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
432de132
Commit
432de132
authored
Jan 01, 2003
by
Niels Möller
Browse files
New tests for hex and base64 literal
output. Rev: src/nettle/testsuite/sexp-conv-test:1.4
parent
cae7cd67
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/sexp-conv-test
View file @
432de132
...
...
@@ -31,6 +31,22 @@ test_advanced () {
fi
}
test_advanced_hex
()
{
echo
$n
"
$1$c
"
>
test.in
if
../tools/sexp-conv
-s
hex <test.in
>
test1.out
;
then
true
else
exit
1
fi
echo
"
$2
"
>
test2.out
if
cmp test1.out test2.out
;
then
true
else
exit
1
;
fi
}
test_transport
()
{
echo
$n
"
$1$c
"
>
test.in
if
../tools/sexp-conv
-s
transport <test.in
>
test1.out
;
then
...
...
@@ -80,6 +96,11 @@ test_advanced '; comment
test_advanced
'(foo[bar]foo)'
'(foo [bar]foo)'
test_advanced
'(#aabb#)'
'(|qrs=|)'
test_advanced
'(|qrs=|)'
'(|qrs=|)'
test_advanced_hex
'(|qrs=|)'
'(#aabb#)'
test_advanced_hex
'(#aabb#)'
'(#aabb#)'
test_transport
'0:'
'{MDo=}'
test_transport
'()'
'{KCk=}'
test_transport
'foo'
'{Mzpmb28=}'
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment