Mercurial > hg > octave-nkf > gnulib-hg
annotate tests/unicase/test-u16-is-titlecase.c @ 12496:a48d3d749ca5
Refactor common macros used in tests.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 24 Dec 2009 21:01:42 +0100 |
parents | e8d2c6fc33ad |
children | c2cbabec01dd |
rev | line source |
---|---|
11369
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
1 /* Test of test whether an UTF-16 string is entirely title case. |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
2 Copyright (C) 2009 Free Software Foundation, Inc. |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
3 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
4 This program is free software: you can redistribute it and/or modify |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
5 it under the terms of the GNU General Public License as published by |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 the Free Software Foundation; either version 3 of the License, or |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 (at your option) any later version. |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
9 This program is distributed in the hope that it will be useful, |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
10 but WITHOUT ANY WARRANTY; without even the implied warranty of |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
12 GNU General Public License for more details. |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
13 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
14 You should have received a copy of the GNU General Public License |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
16 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
17 /* Written by Bruno Haible <bruno@clisp.org>, 2009. */ |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
18 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
19 #include <config.h> |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
20 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
21 #include "unicase.h" |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
22 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
23 #include "unistr.h" |
12496
a48d3d749ca5
Refactor common macros used in tests.
Bruno Haible <bruno@clisp.org>
parents:
12421
diff
changeset
|
24 #include "macros.h" |
11369
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
25 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
26 #define UNIT uint16_t |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
27 #include "test-is-titlecase.h" |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
28 #undef UNIT |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
29 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
30 int |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
31 main () |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
32 { |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
33 test_ascii (u16_is_titlecase); |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
34 |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
35 return 0; |
11d84fc05c00
Tests for module 'unicase/u16-is-titlecase'.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
36 } |