]> git.lyx.org Git - lyx.git/blob - src/support/tests/lstrings.cpp
* lstring.cpp:
[lyx.git] / src / support / tests / 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 namespace lyx {
14         docstring const _(string const & s) { return from_ascii(s); }
15 }
16
17 void test_lowercase()
18 {
19         cout << to_ascii(docstring(1, lowercase(char_type('A')))) << endl;
20         cout << to_ascii(lowercase(from_ascii("AlLe"))) << endl;
21         cout << lowercase('A') << endl;
22         cout << ascii_lowercase("AlLe") << endl;
23 }
24
25 void test_uppercase()
26 {
27         cout << to_ascii(docstring(1, uppercase(char_type('a')))) << endl;
28         cout << to_ascii(uppercase(from_ascii("AlLe"))) << endl;
29         cout << uppercase('a') << endl;
30 }
31
32 int main()
33 {
34         test_lowercase();
35         test_uppercase();
36 }