From 74a9f8aecf503bc6a6a1f955cc847a82b31ddbd4 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 10 Jan 2010 23:34:33 +0100 Subject: [PATCH] Tests for module 'unistr/u16-stpcpy'. --- ChangeLog | 4 ++++ modules/unistr/u16-stpcpy-tests | 13 +++++++++++++ tests/unistr/test-u16-stpcpy.c | 28 ++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 modules/unistr/u16-stpcpy-tests create mode 100644 tests/unistr/test-u16-stpcpy.c diff --git a/ChangeLog b/ChangeLog index 274cd2611..0cabf47bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-01-10 Bruno Haible + Tests for module 'unistr/u16-stpcpy'. + * modules/unistr/u16-stpcpy-tests: New file. + * tests/unistr/test-u16-stpcpy.c: New file. + Tests for module 'unistr/u8-stpcpy'. * modules/unistr/u8-stpcpy-tests: New file. * tests/unistr/test-u8-stpcpy.c: New file. diff --git a/modules/unistr/u16-stpcpy-tests b/modules/unistr/u16-stpcpy-tests new file mode 100644 index 000000000..b42887273 --- /dev/null +++ b/modules/unistr/u16-stpcpy-tests @@ -0,0 +1,13 @@ +Files: +tests/unistr/test-u16-stpcpy.c +tests/unistr/test-stpcpy.h +tests/macros.h + +Depends-on: + +configure.ac: + +Makefile.am: +TESTS += test-u16-stpcpy +check_PROGRAMS += test-u16-stpcpy +test_u16_stpcpy_SOURCES = unistr/test-u16-stpcpy.c diff --git a/tests/unistr/test-u16-stpcpy.c b/tests/unistr/test-u16-stpcpy.c new file mode 100644 index 000000000..6bf3ecb1e --- /dev/null +++ b/tests/unistr/test-u16-stpcpy.c @@ -0,0 +1,28 @@ +/* Test of u16_stpcpy() 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_STPCPY u16_stpcpy +#define MAGIC 0xBADE +#include "test-stpcpy.h" -- 2.11.0