2016-04-13 23:39:22 +02:00
|
|
|
/** @file
|
2015-01-13 22:55:33 +01:00
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @copyright 2014, Edouard DUPIN, all right reserved
|
2017-01-05 21:28:23 +01:00
|
|
|
* @license MPL v2.0 (see license file)
|
2015-01-13 22:55:33 +01:00
|
|
|
*/
|
|
|
|
|
2016-10-02 15:58:37 +02:00
|
|
|
#include "exmlTestCommon.hpp"
|
2017-09-07 23:38:26 +02:00
|
|
|
#include <etest/etest.hpp>
|
2015-01-13 22:55:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
TEST(TestAll, testBase) {
|
|
|
|
exmlLocalTest( "<exemple>\n"
|
|
|
|
" <ex2 ploppp-plpl:erer=\"dfsdfsdfsdf\" lkmjmlk=\"156235\" sdfsdf=\"456321\"/>\n"
|
|
|
|
" <exlkjl-_dsfg./>\n"
|
|
|
|
" <ex2>Text example ...</ex2>\n"
|
|
|
|
"</exemple>\n",
|
|
|
|
"< exemple\n >\n"
|
|
|
|
" <ex2 ploppp-plpl:erer=\"dfsdfsdfsdf\" lkmjmlk=\"156235\" sdfsdf=456321 />\n"
|
|
|
|
" <exlkjl-_dsfg./>\n"
|
|
|
|
" <ex2>\n"
|
|
|
|
" Text example ...\n"
|
|
|
|
" </ex2>\n"
|
|
|
|
"</exemple>\n",
|
|
|
|
-1);
|
|
|
|
}
|
|
|
|
TEST(TestAll, testError) {
|
|
|
|
exmlLocalTest( "",
|
|
|
|
"< exemple\n >\n"
|
|
|
|
" <ex2 ploppp-plpl:erer=\"dfsdfsdfsdf\" lkmjmlk=\"156235\" sdfsdf=456321 />\n"
|
|
|
|
" <exlkjl-_dsfg./> >\n"
|
|
|
|
" <ex2>\n"
|
|
|
|
" Text example ...\n"
|
|
|
|
" </ex2>\n"
|
|
|
|
"</exemple>\n",
|
|
|
|
1);
|
|
|
|
}
|
|
|
|
|
2016-04-13 23:39:22 +02:00
|
|
|
TEST(TestAll, testCaseSensitive) {
|
|
|
|
exmlLocalTest( "<exemple>\n"
|
|
|
|
" <ex2 ploppp-plpl:erer=\"dfsdfsdfsdf\" lkmjmlk=\"156235\" sdfsdf=\"456321\"/>\n"
|
|
|
|
" <exlkjl-_dsfg./>\n"
|
|
|
|
" <ex2>Text example ...</ex2>\n"
|
|
|
|
"</exemple>\n",
|
|
|
|
"< exemple\n >\n"
|
|
|
|
" <ex2 ploppp-plpl:erer=\"dfsdfsdfsdf\" lkmjmlk=\"156235\" sdfsdf=456321 />\n"
|
|
|
|
" <exlkjl-_dsfg./>\n"
|
|
|
|
" <ex2>\n"
|
|
|
|
" Text example ...\n"
|
|
|
|
" </ex2>\n"
|
|
|
|
"</exemple>\n",
|
2016-04-15 21:43:08 +02:00
|
|
|
-1,
|
2016-04-13 23:39:22 +02:00
|
|
|
false);
|
|
|
|
}
|
2015-01-13 22:55:33 +01:00
|
|
|
|