const-integer-set-test.cc File Reference
#include "util/const-integer-set.h"
#include <set>
#include <cassert>
#include <cstdlib>
#include <iostream>
#include "util/kaldi-io.h"
Include dependency graph for const-integer-set-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

template<class Int >
void TestSetOfNumbers (bool binary)
 
int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 134 of file const-integer-set-test.cc.

References rnnlm::i, and kaldi::Rand().

134  {
135  using namespace kaldi;
136  for (size_t i = 0;i < 10;i++) {
137  TestSetOfNumbers<int>(Rand()%2);
138  TestSetOfNumbers<unsigned int>(Rand()%2);
139  TestSetOfNumbers<int16>(Rand()%2);
140  TestSetOfNumbers<int16>(Rand()%2);
141  TestSetOfNumbers<char>(Rand()%2);
142  TestSetOfNumbers<unsigned char>(Rand()%2);
143  }
144  std::cout << "Test OK.\n";
145 }
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
Definition: chain.dox:20
int Rand(struct RandomState *state)
Definition: kaldi-math.cc:45