aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-12-04 19:33:26 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-12-04 19:33:26 +0300
commit1162170387a535c21a63777c5d73ecbf706d0e02 (patch)
treee09861309abc11030df40987ed30227b71308676 /test
parent249c0583d2a12ddde67e05251e47f256a58cfd05 (diff)
downloadrspamd-1162170387a535c21a63777c5d73ecbf706d0e02.tar.gz
rspamd-1162170387a535c21a63777c5d73ecbf706d0e02.zip
* Add simple implementation of classifiers abstraction and winnow classifier
* Force statfile to work with float values
Diffstat (limited to 'test')
-rw-r--r--test/rspamd_statfile_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rspamd_statfile_test.c b/test/rspamd_statfile_test.c
index 6537bcfaf..19a6cf7ab 100644
--- a/test/rspamd_statfile_test.c
+++ b/test/rspamd_statfile_test.c
@@ -45,13 +45,13 @@ rspamd_statfile_test_func ()
/* Get and set random blocks */
statfile_pool_lock_file (pool, TEST_FILENAME);
for (i = 0; i < HASHES_NUM; i ++) {
- statfile_pool_set_block (pool, TEST_FILENAME, random_hashes[i], random_hashes[i], now, random_hashes[i]);
+ statfile_pool_set_block (pool, TEST_FILENAME, random_hashes[i], random_hashes[i], now, 1.0);
}
statfile_pool_unlock_file (pool, TEST_FILENAME);
for (i = 0; i < HASHES_NUM; i ++) {
v = statfile_pool_get_block (pool, TEST_FILENAME, random_hashes[i], random_hashes[i], now);
- g_assert(v == random_hashes[i]);
+ g_assert(v == 1.0);
}
statfile_pool_delete (pool);