ModErn Text Analysis
META Enumerates Textual Applications
vocabulary_map_test.h
1 
10 #ifndef META_VOCABULARY_MAP_WRITER_TEST_H_
11 #define META_VOCABULARY_MAP_WRITER_TEST_H_
12 
13 #include <iostream>
14 #include "io/binary.h"
16 #include "index/vocabulary_map.h"
17 #include "util/disk_vector.h"
18 #include "util/filesystem.h"
19 #include "test/unit_test.h"
20 
21 namespace meta
22 {
23 namespace testing
24 {
29 void write_file(uint16_t size = 20);
30 
35 void assert_correctness(uint16_t size = 20);
36 
41 void read_file(uint16_t size = 20);
42 
48 }
49 }
50 
51 #endif
void read_file(uint16_t size=20)
Reads data from the vocab map file.
Definition: vocabulary_map_test.cpp:95
The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
Definition: analyzer.h:24
int vocabulary_map_tests()
Runs the vocab map tests.
Definition: vocabulary_map_test.cpp:128
void assert_correctness(uint16_t size=20)
Makes sure the content in the vocab map is correct.
Definition: vocabulary_map_test.cpp:22
void write_file(uint16_t size=20)
Writes a file to decode.
Definition: vocabulary_map_test.cpp:14