From: Bruno Haible Date: Sun, 10 Jan 2010 14:26:50 +0000 (+0100) Subject: Tests for module 'unistr/u16-cpy'. X-Git-Tag: v0.1~4835 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=61db6d475d4778b9f9af34cf55c2c3ae10c48906;p=gnulib.git Tests for module 'unistr/u16-cpy'. --- diff --git a/ChangeLog b/ChangeLog index 3d7de4967..7d4adf649 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-01-10 Bruno Haible + Tests for module 'unistr/u16-cpy'. + * modules/unistr/u16-cpy-tests: New file. + * tests/unistr/test-u16-cpy.c: New file. + Tests for module 'unistr/u8-cpy'. * modules/unistr/u8-cpy-tests: New file. * tests/unistr/test-u8-cpy.c: New file. diff --git a/modules/unistr/u16-cpy-tests b/modules/unistr/u16-cpy-tests new file mode 100644 index 000000000..08a97037b --- /dev/null +++ b/modules/unistr/u16-cpy-tests @@ -0,0 +1,13 @@ +Files: +tests/unistr/test-u16-cpy.c +tests/unistr/test-cpy.h +tests/macros.h + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-u16-cpy +check_PROGRAMS += test-u16-cpy +test_u16_cpy_SOURCES = unistr/test-u16-cpy.c diff --git a/tests/unistr/test-u16-cpy.c b/tests/unistr/test-u16-cpy.c new file mode 100644 index 000000000..168a459a3 --- /dev/null +++ b/tests/unistr/test-u16-cpy.c @@ -0,0 +1,28 @@ +/* Test of u16_cpy() function. + Copyright (C) 2010 Free Software Foundation, Inc. + + 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 3 of the License, 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, see . */ + +/* Written by Bruno Haible , 2010. */ + +#include + +#include "unistr.h" + +#include "macros.h" + +#define UNIT uint16_t +#define U_CPY u16_cpy +#define MAGIC 0xBADE +#include "test-cpy.h"