X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-base64.c;h=cb6ba9ff02d019dca1e4198f4353b47fa65d70ae;hb=d41ac94ee9c6646da062a193b37c32a82ba63ac2;hp=92285f16fbb9a0f3bf0d590d27719ed1c73f81f6;hpb=112ca20edbdbbede4ffeac64892bb4fc5e1b04d6;p=gnulib.git diff --git a/tests/test-base64.c b/tests/test-base64.c index 92285f16f..cb6ba9ff0 100755 --- a/tests/test-base64.c +++ b/tests/test-base64.c @@ -1,15 +1,38 @@ -#include "base64.h" +/* Self tests for base64. + Copyright (C) 2004 Free Software Foundation, Inc. + Written by Simon Josefsson. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#ifdef HAVE_CONFIG_H +# include +#endif + +#include #include +#include #include +#include "base64.h" + int main (int argc, char *argv[]) { const char *in = "abcdefghijklmnop"; const char *b64in = "YWJjZGVmZw=="; char out[255]; - char *p; size_t len; bool ok;