From abaf42e566fa7307af9ea45cd3bfa78d9cb701a6 Mon Sep 17 00:00:00 2001 From: Yen Ching-Hsuan Date: Sat, 16 Apr 2016 20:54:52 -0700 Subject: [PATCH] revise the test case of chewing_userphrase_get_freq() --- test/test-userphrase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-userphrase.c b/test/test-userphrase.c index 745432a44..55f50352f 100644 --- a/test/test-userphrase.c +++ b/test/test-userphrase.c @@ -506,7 +506,7 @@ void test_userphrase_enumerate_frequency() ok(orig_freq_b == orig_freq, "chewing_userphrase_get_freq() orig_freq `%d' shall be `%d'", orig_freq_b, orig_freq); ok(max_freq_b == max_freq, "chewing_userphrase_get_freq() max_freq `%d' shall be `%d'", max_freq_b, max_freq); ok(user_freq_b > user_freq, "chewing_userphrase_get_freq() shall set user_freq `%d' > `%d'", user_freq_b, user_freq); - ok(time_b > time, "chewing_userphrase_get_freq() shall set time `%d' > `%d'", time_b, time); + ok(time_b >= time, "chewing_userphrase_get_freq() shall set time `%d' >= `%d'", time_b, time); printf("ret=%d. orig=%d. max=%d. user=%d. time=%d.\n",ret,orig_freq,max_freq,user_freq,time); chewing_delete(ctx);