Mercurial Hosting > luan
diff scripts/test.luan @ 1269:bcb39089e899
remove Ab_testing
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 12 Nov 2018 19:50:37 -0700 |
parents | 0f2890e2ba16 |
children | d410747a671a |
line wrap: on
line diff
--- a/scripts/test.luan Mon Nov 12 03:54:04 2018 -0700 +++ b/scripts/test.luan Mon Nov 12 19:50:37 2018 -0700 @@ -22,7 +22,6 @@ local find = String.find or error() local init = Http_test.init or error() local get_page = Http_test.get_page or error() -local Ab_testing = require "luan:lucene/Ab_testing.luan" local function print(...) @@ -55,23 +54,6 @@ local db = Lucene.index(lucene_dir.to_string()) db.delete_all() -local ab_testing = Ab_testing.of(db) -local test_events = {"all"} -local aggregator_factories = { - all = Ab_testing.count_all; -} -ab_testing.test{ name="All", values={"all"}, events=test_events, aggregator_factories=aggregator_factories } -ab_testing.test{ name="null", values={"A","B"}, events=test_events, aggregator_factories=aggregator_factories } - -for record in range(1,10) do - local doc = {type="test"} - ab_testing.to_doc(doc) - db.save(doc) -end - -init() -ab_testing.web_page{"All","null"}() - local Web_search = require "luan:lucene/Web_search.luan" local web_search = Web_search.of(db)