]> git.lyx.org Git - lyx.git/blob - src/support/tests/check_lstrings.cpp
* layouttranslations.review - remove dupes
[lyx.git] / src / support / tests / check_lstrings.cpp
1 #include <config.h>
2
3 #include "../lstrings.h"
4
5 #include <iostream>
6
7
8 using namespace lyx::support;
9 using namespace lyx;
10
11 using namespace std;
12
13 void test_lowercase()
14 {
15         cout << to_ascii(docstring(1, lowercase(char_type('A')))) << endl;
16         cout << to_ascii(lowercase(from_ascii("AlLe"))) << endl;
17         cout << lowercase('A') << endl;
18         cout << ascii_lowercase("AlLe") << endl;
19 }
20
21 void test_uppercase()
22 {
23         cout << to_ascii(docstring(1, uppercase(char_type('a')))) << endl;
24         cout << to_ascii(uppercase(from_ascii("AlLe"))) << endl;
25         cout << uppercase('a') << endl;
26 }
27
28 int main()
29 {
30         test_lowercase();
31         test_uppercase();
32 }