7#if defined(HAVE_READLINE) && defined(HAVE_READLINE_READLINE_H)
9int main(
int argc,
char *argv[])
16 printf(
"Usage: %s\n", argv[0]);
23 printf(
"Cannot test - initialization failed\n");
27 i = system(
"echo \"ring\" > test.txt");
31 printf(
"Returnvalue for ml_make_prediciton: \t%d\n",
i);
32 for (
k = 0;
k < 5;
k++) {
33 printf(
"String %d in buffer: \t\t%s\n",
k, buffer[
k]);
36 for (
k = 0;
k < 5;
k++) {
37 if ((
int)strlen(buffer[
k]) !=
length[
k])
40 if (strcmp(buffer[0],
"sing_29.htm"))
return 1;
41 if (
length[0] != 11)
return 1;
49int main(
int argc,
char *argv[])
55int main(
int argc,
char *argv[])
static BOOLEAN length(leftv result, leftv arg)
Function definitions for using python to do machine learning in Singular.