]> git.lyx.org Git - features.git/blobdiff - src/support/tests/lstrings.C
Get rid of some locale dependant functions
[features.git] / src / support / tests / lstrings.C
index 998deafec09c3fe8fd8f2dde40440ec12f01858a..90bf967885f4366dab962a1052e10260b155eece 100644 (file)
@@ -1,9 +1,12 @@
+#include <config.h>
+
 #include "../lstrings.h"
 
 #include <iostream>
 
 
 using namespace lyx::support;
+using namespace lyx;
 
 using namespace std;
 
@@ -13,14 +16,17 @@ namespace lyx {
 
 void test_lowercase()
 {
+       cout << to_ascii(docstring(1, lowercase(char_type('A')))) << endl;
+       cout << to_ascii(lowercase(from_ascii("AlLe"))) << endl;
        cout << lowercase('A') << endl;
-       cout << lowercase("AlLe") << endl;
+       cout << ascii_lowercase("AlLe") << endl;
 }
 
 void test_uppercase()
 {
+       cout << to_ascii(docstring(1, uppercase(char_type('a')))) << endl;
+       cout << to_ascii(uppercase(from_ascii("AlLe"))) << endl;
        cout << uppercase('a') << endl;
-       cout << uppercase("AlLe") << endl;
 }
 
 int main()