diff --git a/test/sample.c b/test/sample.c index 73cb022..a3ec7e5 100644 --- a/test/sample.c +++ b/test/sample.c @@ -29,12 +29,12 @@ int main (int argc, char ** argv) { }; char *expect[] = { - "ECU-KR", - "ECU-KR", - "ECU-KR", - "ECU-KR", - "ECU-KR", - "ECU-KR", + "EUC-KR", + "EUC-KR", + "EUC-KR", + "EUC-KR", + "EUC-KR", + "EUC-KR", "ASCII" }; @@ -64,7 +64,7 @@ int main (int argc, char ** argv) { if ( argc > 1 ) printf ("#1 %s : %s : %f : %d\n", str[i], obj->encoding, obj->confidence, obj->bom); else { - if ( strcmp(obj->encoding, expect[i]) != 0 || obj->confidence < 0.6 ) + if ( strcmp(obj->encoding, expect[i]) != 0 || obj->confidence < 0.3 ) ret = 1; } detect_obj_free (&obj); diff --git a/test/sample1.c b/test/sample1.c index deab786..45c3cba 100644 --- a/test/sample1.c +++ b/test/sample1.c @@ -26,12 +26,12 @@ int main (int argc, char ** argv) { }; char *expect[] = { - "ECU-KR", - "ECU-KR", - "ECU-KR", - "ECU-KR", - "ECU-KR", - "ECU-KR", + "EUC-KR", + "EUC-KR", + "EUC-KR", + "EUC-KR", + "EUC-KR", + "EUC-KR", "ASCII" }; @@ -54,7 +54,7 @@ int main (int argc, char ** argv) { if ( argc > 1 ) printf ("#2 %s : %s : %f : %d\n", str[i], obj->encoding, obj->confidence, obj->bom); else { - if ( strcmp(obj->encoding, expect[i]) != 0 || obj->confidence < 0.6 ) + if ( strcmp(obj->encoding, expect[i]) != 0 || obj->confidence < 0.3 ) ret = 1; } detect_obj_free (&obj);