X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-base64.c;h=67aca2c8a0c45856b67fed065c587d568c8293a2;hb=321b14a2a9726a7cf0e4c9dbdaede314cc2be4f5;hp=92285f16fbb9a0f3bf0d590d27719ed1c73f81f6;hpb=112ca20edbdbbede4ffeac64892bb4fc5e1b04d6;p=gnulib.git diff --git a/tests/test-base64.c b/tests/test-base64.c index 92285f16f..67aca2c8a 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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;