--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE xdxf SYSTEM "http://xdxf.sourceforge.net/xdxf_lousy.dtd">
+<xdxf lang_from="ENG" lang_to="POL" format="visual">
+<full_name>English-Polish dictionary</full_name>
+<description>Copyright: http://www.freelang.net/dictionary/; Version: 1.0</description>
+<ar><k>!</k>
+wykrzyknik</ar>
+<ar><k>.</k>
+kropka</ar>
+<ar><k>1</k>
+one</ar>
+<ar><k>1 000 000</k>
+milion</ar>
+<ar><k>10</k>
+dziesięć</ar>
+<ar><k>100</k>
+sto</ar>
+<ar><k>1000</k>
+tysišc</ar>
+<ar><k>house</k>
+dom</ar>
+</xdxf>
#include "test.h"
#include <QSignalSpy>
-void Testowanie::search() {
+void XdxfTest::search() {
/*test for English-Polish dictionary */
XdxfPlugin xdxfPlugin(this);
xdxfPlugin.search("wino");
QCOMPARE(xdxfPlugin.search("1"), QString("one\n"));
}
-void Testowanie::searchWordList() {
+void XdxfTest::searchWordList() {
/*test for English-Polish dictionary */
XdxfPlugin xdxfPlugin(this);
QList<Translation*> te=xdxfPlugin.searchWordList(".",10);
}
-void Testowanie::getNew() {
+void XdxfTest::getNew() {
/* XdxfPlugin xdxfPlugin(this);
Settings settings;
settings.setValue("path","dict2");
*/
}
-void Testowanie::stop() {
+void XdxfTest::stop() {
/*test for English-Polish dictionary */
CommonDictInterface *xdxfPlugin = new XdxfPlugin(this);
QCOMPARE(te5.size(),8);
}
-void Testowanie::langFrom() {
+void XdxfTest::langFrom() {
/*test for English-Polish dictionary */
XdxfPlugin xdxfPlugin(this);
xdxfPlugin.searchWordList("rope",10);
QCOMPARE(xdxfPlugin.langFrom(), QString("ENG"));
}
-QTEST_MAIN(Testowanie)
+QTEST_MAIN(XdxfTest)
//#include "testqstring.moc"