Skip to content

Commit

Permalink
fixed make check failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Joungkyun committed May 13, 2021
1 parent 876d392 commit 9db44eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions test/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
};

Expand Down Expand Up @@ -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);
Expand Down
14 changes: 7 additions & 7 deletions test/sample1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
};

Expand All @@ -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);
Expand Down

0 comments on commit 9db44eb

Please sign in to comment.