mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-24 21:36:51 +00:00
Fix to_utf8 test: add test data directory and remove unused include
This commit is contained in:
parent
c947d87ab9
commit
cc792da858
5 changed files with 6 additions and 3 deletions
1
components/to_utf8/tests/test_data/french-utf8.txt
Normal file
1
components/to_utf8/tests/test_data/french-utf8.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Vous lui donnez le gâteau sans protester avant d’aller chercher tous vos amis et de revenir vous venger.
|
1
components/to_utf8/tests/test_data/french-win1252.txt
Normal file
1
components/to_utf8/tests/test_data/french-win1252.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Vous lui donnez le gâteau sans protester avant d’aller chercher tous vos amis et de revenir vous venger.
|
1
components/to_utf8/tests/test_data/russian-utf8.txt
Normal file
1
components/to_utf8/tests/test_data/russian-utf8.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Без вопросов отдаете ему рулет, зная, что позже вы сможете привести с собой своих друзей и тогда он получит по заслугам?
|
1
components/to_utf8/tests/test_data/russian-win1251.txt
Normal file
1
components/to_utf8/tests/test_data/russian-win1251.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Без вопросов отдаете ему рулет, зная, что позже вы сможете привести с собой своих друзей и тогда он получит по заслугам?
|
|
@ -2,7 +2,6 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <typeinfo>
|
|
||||||
|
|
||||||
#include "../to_utf8.hpp"
|
#include "../to_utf8.hpp"
|
||||||
|
|
||||||
|
@ -55,7 +54,7 @@ std::string getFirstLine(const std::string &filename)
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
testEncoder(ToUTF8::WINDOWS_1251, "data/russian-win1251.txt", "data/russian-utf8.txt");
|
testEncoder(ToUTF8::WINDOWS_1251, "test_data/russian-win1251.txt", "test_data/russian-utf8.txt");
|
||||||
testEncoder(ToUTF8::WINDOWS_1252, "data/french-win1252.txt", "data/french-utf8.txt");
|
testEncoder(ToUTF8::WINDOWS_1252, "test_data/french-win1252.txt", "test_data/french-utf8.txt");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue