From: <ssc...@us...> - 2003-03-28 23:18:26
|
Update of /cvsroot/popfile/engine/tests In directory sc8-pr-cvs1:/tmp/cvs-serv18883 Modified Files: TestBayes.tst Log Message: Fix bayes tests Index: TestBayes.tst =================================================================== RCS file: /cvsroot/popfile/engine/tests/TestBayes.tst,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TestBayes.tst 25 Mar 2003 05:24:58 -0000 1.5 --- TestBayes.tst 28 Mar 2003 23:18:21 -0000 1.6 *************** *** 57,65 **** $b->config_( 'msgdir', 'tests/' ); $b->module_config_( 'html', 'port', 8080 ); ! $b->config_( 'xtc', 1 ); ! $b->config_( 'xpl', 1 ); $b->module_config_( 'pop3', 'local', 1 ); $b->module_config_( 'subject', 1 ); $b->set_bucket_parameter( 'spam', 'subject', 1 ); my @modify_tests = sort glob 'tests/TestMailParse*.msg'; --- 57,66 ---- $b->config_( 'msgdir', 'tests/' ); $b->module_config_( 'html', 'port', 8080 ); ! $b->global_config_( 'xtc', 1 ); ! $b->global_config_( 'xpl', 1 ); $b->module_config_( 'pop3', 'local', 1 ); $b->module_config_( 'subject', 1 ); $b->set_bucket_parameter( 'spam', 'subject', 1 ); + $b->set_bucket_parameter( 'spam', 'quarantine', 0 ); my @modify_tests = sort glob 'tests/TestMailParse*.msg'; *************** *** 81,85 **** $output_line =~ s/[\r\n]//g; $cam_line =~ s/[\r\n]//g; ! test_assert_equal( $cam_line, $output_line, $modify_file ); } --- 82,86 ---- $output_line =~ s/[\r\n]//g; $cam_line =~ s/[\r\n]//g; ! test_assert_equal( $output_line, $cam_line, $modify_file ); } |