summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-03-17 10:50:34 +0800
committerPeng Wu <alexepico@gmail.com>2015-03-17 10:50:34 +0800
commit2529291ebcc7432ae9690f741a539341e3efd09f (patch)
treedf646503ae2f64737820aaa1f3997b483f62cb34
parent26d2a5e8ae6bcccd329fc3e9c7a234519ac5ad88 (diff)
downloadlibzhuyin-2529291ebcc7432ae9690f741a539341e3efd09f.zip
libzhuyin-2529291ebcc7432ae9690f741a539341e3efd09f.tar.gz
libzhuyin-2529291ebcc7432ae9690f741a539341e3efd09f.tar.xz
update test cases
-rw-r--r--tests/storage/test_parser2.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/storage/test_parser2.cpp b/tests/storage/test_parser2.cpp
index 854e270..2fa00a1 100644
--- a/tests/storage/test_parser2.cpp
+++ b/tests/storage/test_parser2.cpp
@@ -78,10 +78,9 @@ int main(int argc, char * argv[]) {
parser = new FullPinyinParser2();
} else if (strcmp("chewing", parsername) == 0) {
if (strcmp("standard", schemename) == 0) {
- parser = new ChewingDiscreteParser2();
+ parser = new ChewingSimpleParser2();
} else if (strcmp("hsu", schemename) == 0) {
parser = new ChewingDiscreteParser2();
- ((ChewingDiscreteParser2 *)parser)->set_scheme(CHEWING_HSU);
} else if (strcmp("dachen26", schemename) == 0) {
parser = new ChewingDaChenCP26Parser2();
}
@@ -90,7 +89,7 @@ int main(int argc, char * argv[]) {
}
if (!parser)
- parser = new ChewingDiscreteParser2();
+ parser = new ChewingSimpleParser2();
char* linebuf = NULL; size_t size = 0; ssize_t read;
while( (read = getline(&linebuf, &size, stdin)) != -1 ){