summaryrefslogtreecommitdiff
path: root/tests/common/RecordsParam_create.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common/RecordsParam_create.cpp')
-rw-r--r--tests/common/RecordsParam_create.cpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/tests/common/RecordsParam_create.cpp b/tests/common/RecordsParam_create.cpp
new file mode 100644
index 0000000..b247f35
--- /dev/null
+++ b/tests/common/RecordsParam_create.cpp
@@ -0,0 +1,62 @@
+#include "RecordsParam.h"
+
+typedef RecordsParam RP;
+
+vector<RecordsParam> RecordsParam::createParams()
+{
+return
+ {
+ RP({0, 1},
+ {{"table", "стол"}, {"window", "окно"}},
+ {"table", "window"},
+ {{"table", "стол"}, {"window", "окно"}}),
+ RP({0, 1},
+ {{"table", "стол"}, {"window", "окно"}, {"world", "мир"}},
+ {"table", "window", "world"},
+ {{"table", "стол"}, {"window", "окно"}, {"world", "мир"}}),
+ RP({1, 0},
+ {{"table", "стол"}, {"window", "окно"}},
+ {"стол", "окно"},
+ {{"стол", "table"}, {"окно", "window"}}),
+ RP({0, 1},
+ {{"table", "стол"}, {"table", "стол"}},
+ {"table"},
+ {{"table", "стол"}}),
+ RP({0, 1},
+ {{"table", "стол"}, {"table", "таблица"}},
+ {"table"},
+ {{"table", "стол; таблица"}}),
+ RP({1, 0},
+ {{"world", "мир"}, {"peace", "мир"}},
+ {"мир"},
+ {{"мир", "world; peace"}}),
+ RP({1, 0},
+ {{"man", "человек; мужчина"}, {"man", "мужик"}},
+ {"человек", "мужчина", "мужик"},
+ {{"человек", "man"}, {"мужчина", "man"}, {"мужик", "man"}}),
+ RP({0, 1},
+ {{"better; best", "лучший"}},
+ {"better", "best"},
+ {{"better", "лучший"}, {"best", "лучший"}}),
+ RP({0, 1},
+ {{"table", ""},},
+ {},
+ {}),
+ RP({0, 1},
+ {{"", "стол"},},
+ {},
+ {}),
+ RP({0, 1, 2},
+ {{"table", "стол", "pöytä"}, {"window", "окно", "ikkuna"}},
+ {"table", "window"},
+ {{"table", "стол", "pöytä"}, {"window", "окно", "ikkuna"}}),
+ RP({0, 2, 1},
+ {{"table", "стол", "pöytä"}, {"window", "окно", "ikkuna"}},
+ {"table", "window"},
+ {{"table", "pöytä", "стол"}, {"window", "ikkuna", "окно"}}),
+ RP({0, 1, 2},
+ {{"table", "", "pöytä"}, {"window", "окно", ""}},
+ {"table", "window"},
+ {{"table", "", "pöytä"}, {"window", "окно", ""}}),
+ };
+}