1 /* -*- mode: C -*-
2  *
3  *       File:         rec-sex-eval.c
4  *       Date:         Mon Nov 15 15:19:22 2010
5  *
6  *       GNU recutils - rec_sex_eval unit tests.
7  *
8  */
9 
10 /* Copyright (C) 2010-2015 Jose E. Marchesi */
11 
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.
16  *
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.
21  *
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/>.
24  */
25 
26 #include <config.h>
27 #include <string.h>
28 #include <check.h>
29 
30 #include <rec.h>
31 
32 /*-
33  * Test: rec_sex_eval_match
34  * Unit: rec_sex_eval
35  * Description:
36  * + Eval SEX expressions against matching records.
37  */
START_TEST(rec_sex_eval_match)38 START_TEST(rec_sex_eval_match)
39 {
40   rec_sex_t sex;
41 
42   sex = rec_sex_new (false);
43   fail_if (sex == NULL);
44 
45   rec_sex_destroy (sex);
46 }
47 END_TEST
48 
49 /*-
50  * Test: rec_sex_eval_nomatch
51  * Unit: rec_sex_eval
52  * Description:
53  * + Eval SEX expressions against non matching
54  * + records.
55  */
START_TEST(rec_sex_eval_nomatch)56 START_TEST(rec_sex_eval_nomatch)
57 {
58   rec_sex_t sex;
59 
60   sex = rec_sex_new (false);
61   fail_if (sex == NULL);
62 
63   rec_sex_destroy (sex);
64 }
65 END_TEST
66 
67 /*
68  * Test case creation function
69  */
70 TCase *
test_rec_sex_eval(void)71 test_rec_sex_eval (void)
72 {
73   TCase *tc = tcase_create ("rec_sex_eval");
74   tcase_add_test (tc, rec_sex_eval_match);
75   tcase_add_test (tc, rec_sex_eval_nomatch);
76 
77   return tc;
78 }
79 
80 /* End of rec-sex-eval.c */
81