first version upgrade
[devspec.git] / devspec.en_US / project / recutils / torture / rec-writer / rec-writer-new.c
blob9d34dc209a67a8a9caf58fa04e7f781da80a6444
1 /* -*- mode: C -*-
3 * File: rec-writer-new.c
4 * Date: Sun Nov 14 10:57:39 2010
6 * GNU recutils - rec_writer_new unit tests.
8 */
10 /* Copyright (C) 2010-2015 Jose E. Marchesi */
12 /* This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #include <config.h>
27 #include <string.h>
28 #include <stdio.h>
29 #include <check.h>
31 #include <rec.h>
33 /*-
34 * Test: rec_writer_new_nominal
35 * Unit: rec_writer_new
36 * Description:
37 * + Create a rec writer.
39 START_TEST(rec_writer_new_nominal)
41 rec_writer_t writer;
43 writer = rec_writer_new (stdout);
44 fail_if (writer == NULL);
46 rec_writer_destroy (writer);
48 END_TEST
51 * Test creation function
53 TCase *
54 test_rec_writer_new (void)
56 TCase *tc = tcase_create ("rec_writer_new");
57 tcase_add_test (tc, rec_writer_new_nominal);
59 return tc;
62 /* End of rec-writer-new.c */