3
use lib '.'; use lib 't';
4
use SATest; sa_t_init("autolearn_force");
7
use constant TEST_ENABLED => eval { require DB_File; };
10
plan tests => (TEST_ENABLED ? 2 : 0);
13
exit unless TEST_ENABLED;
16
# ---------------------------------------------------------------------------
20
q{ autolearn=spam autolearn_force=yes } => 'autolearned as spam with autolearn_force'
29
body AUTOLEARNTEST_BODY /EVOLUTION PREVIEW RELEASE/
30
score AUTOLEARNTEST_BODY 7.0
31
tflags AUTOLEARNTEST_BODY autolearn_force
35
bayes_auto_learn_threshold_spam 6.0
39
ok (sarun ("-L -t < data/nice/001", \&patterns_run_cb));