text-utils-test.cc File Reference
#include "base/kaldi-common.h"
#include "util/text-utils.h"
Include dependency graph for text-utils-test.cc:

Go to the source code of this file.

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 

Functions

char GetRandChar ()
 
char GetRandDelim ()
 
void TestSplitStringToVector ()
 
void TestSplitStringToIntegers ()
 
void TestSplitStringToFloats ()
 
void TestConvertStringToInteger ()
 
template<class Real >
void TestConvertStringToReal ()
 
template<class Real >
void TestNan ()
 
template<class Real >
void TestInf ()
 
std::string TrimTmp (std::string s)
 
void TestTrim ()
 
void TestSplitStringOnFirstSpace ()
 
void TestIsToken ()
 
void TestIsLine ()
 
void TestStringsApproxEqual ()
 
void UnitTestConfigLineParse ()
 
void UnitTestReadConfig ()
 
int main ()
 

Variables

const char * ws_delim = " \t\n\r"
 

Function Documentation

◆ main()

int main ( )

Definition at line 518 of file text-utils-test.cc.

References kaldi::TestConvertStringToInteger(), kaldi::TestIsLine(), kaldi::TestIsToken(), kaldi::TestSplitStringOnFirstSpace(), kaldi::TestSplitStringToFloats(), kaldi::TestSplitStringToIntegers(), kaldi::TestSplitStringToVector(), kaldi::TestStringsApproxEqual(), kaldi::TestTrim(), kaldi::UnitTestConfigLineParse(), and kaldi::UnitTestReadConfig().

518  {
519  using namespace kaldi;
524  TestConvertStringToReal<float>();
525  TestConvertStringToReal<double>();
526  TestTrim();
528  TestIsToken();
529  TestIsLine();
531  TestNan<float>();
532  TestNan<double>();
533  TestInf<float>();
534  TestInf<double>();
537  std::cout << "Test OK\n";
538 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
void UnitTestConfigLineParse()
void TestConvertStringToInteger()
void TestStringsApproxEqual()
void TestSplitStringToIntegers()
void TestSplitStringOnFirstSpace()
void TestIsLine()
void TestSplitStringToFloats()
void UnitTestReadConfig()
void TestIsToken()
void TestSplitStringToVector()
void TestTrim()