Cambridge SMT System
|
Unit testing: grammar task testing. More...
#include <googletesting.h>
#include "main.custom_assert.hpp"
#include "main.logger.hpp"
#include "params.hpp"
#include "defs.grammar.hpp"
#include "addresshandler.hpp"
#include "taskinterface.hpp"
#include "data.stats.hpp"
#include "data.grammar.hpp"
#include "task.grammar.hpp"
Go to the source code of this file.
Classes | |
struct | TaskData |
Trivial Data class with necessary variables for correct compilation. More... | |
Functions | |
TEST (HifstGrammar, task) | |
Tests through stringstream that the loading procedure is done correctly. TaskData is not really required for this test. More... | |
TEST (HifstGrammar, data_grammar) | |
TEST (HifstGrammar, getSize) | |
getSize function More... | |
TEST (HifstGrammar, isTerminal) | |
TEST (HifstGrammar, getFilteredNonTerminal) | |
TEST (HifstGrammar, nonterminalhierarchy) | |
int | main (int argc, char **argv) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 182 of file hifst.task.grammar.gtest.cpp.
TEST | ( | HifstGrammar | , |
task | |||
) |
Tests through stringstream that the loading procedure is done correctly. TaskData is not really required for this test.
Definition at line 49 of file hifst.task.grammar.gtest.cpp.
TEST | ( | HifstGrammar | , |
data_grammar | |||
) |
Definition at line 60 of file hifst.task.grammar.gtest.cpp.
TEST | ( | HifstGrammar | , |
getSize | |||
) |
getSize function
Definition at line 108 of file hifst.task.grammar.gtest.cpp.
TEST | ( | HifstGrammar | , |
isTerminal | |||
) |
Definition at line 118 of file hifst.task.grammar.gtest.cpp.
TEST | ( | HifstGrammar | , |
getFilteredNonTerminal | |||
) |
Definition at line 124 of file hifst.task.grammar.gtest.cpp.
TEST | ( | HifstGrammar | , |
nonterminalhierarchy | |||
) |
Definition at line 141 of file hifst.task.grammar.gtest.cpp.