3 #include "../insets/ExternalTransforms.h"
4 #include "../support/debug.h"
13 void test_sanitizeLatexOption()
15 using external::sanitizeLatexOption;
17 cout << sanitizeLatexOption("") << endl;
18 cout << sanitizeLatexOption(",") << endl;
19 cout << sanitizeLatexOption(",,") << endl;
20 cout << sanitizeLatexOption("[") << endl;
21 cout << sanitizeLatexOption("]") << endl;
23 cout << sanitizeLatexOption("[]") << endl;
24 cout << sanitizeLatexOption("[[]") << endl;
25 cout << sanitizeLatexOption("[]]") << endl;
26 cout << sanitizeLatexOption("[[]]") << endl;
27 cout << sanitizeLatexOption("[,]") << endl;
28 cout << sanitizeLatexOption("[,,]") << endl;
29 cout << sanitizeLatexOption("[,,,]") << endl;
30 cout << sanitizeLatexOption("[a]") << endl;
31 cout << sanitizeLatexOption("[,a]") << endl;
32 cout << sanitizeLatexOption("[,,a]") << endl;
33 cout << sanitizeLatexOption("[,,,a]") << endl;
34 cout << sanitizeLatexOption("[a,b]") << endl;
35 cout << sanitizeLatexOption("[a,,b]") << endl;
36 cout << sanitizeLatexOption("[a,,,b]") << endl;
37 cout << sanitizeLatexOption("[a,]") << endl;
38 cout << sanitizeLatexOption("[a,,]") << endl;
39 cout << sanitizeLatexOption("[a,,,]") << endl;
43 int main(int, char **)
45 // Connect lyxerr with cout instead of cerr to catch error output
46 lyx::lyxerr.setStream(cout);
47 test_sanitizeLatexOption();