16 lines
360 B
D
16 lines
360 B
D
|
import dgt;
|
||
|
|
||
|
unittest {
|
||
|
auto dgt = new DGT;
|
||
|
dgt.lang.source.en;
|
||
|
dgt.lang.target.de;
|
||
|
|
||
|
string text = "Text intended for translation into LANGUAGE";
|
||
|
|
||
|
assert(dgt.translate(text) == "Text, der in die SPRACHE übersetzt werden soll");
|
||
|
|
||
|
dgt.lang.target.tr;
|
||
|
|
||
|
assert(dgt.translate(text) == "LANGUAGE diline çevrilmesi amaçlanan metin");
|
||
|
}
|