From fd9ca5841dee309700444831c54f2ec743f7c5de Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 9 Sep 2011 15:54:15 +0800 Subject: update test case --- tests/test_chewing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_chewing.cpp') diff --git a/tests/test_chewing.cpp b/tests/test_chewing.cpp index 8d88bb2..95e867e 100644 --- a/tests/test_chewing.cpp +++ b/tests/test_chewing.cpp @@ -27,7 +27,7 @@ int main(int argc, char * argv[]){ pinyin_context_t * context = pinyin_init("../data", "../data"); - pinyin_instance_t * instance = pinyin_get_instance(context); + pinyin_instance_t * instance = pinyin_alloc_instance(context); char* linebuf = NULL; size_t size = 0; @@ -54,7 +54,7 @@ int main(int argc, char * argv[]){ pinyin_save(context); } - pinyin_release_instance(instance); + pinyin_free_instance(instance); pinyin_fini(context); free(linebuf); return 0; -- cgit