Mercurial Hosting > luan
comparison lucene/src/luan/modules/lucene/Ab_testing.luan @ 495:598123096772
rename service() to respond()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 15 May 2015 18:10:14 -0600 |
parents | 2b9bc97f0439 |
children | 92c3d22745b8 |
comparison
equal
deleted
inserted
replaced
494:2b9bc97f0439 | 495:598123096772 |
---|---|
130 end | 130 end |
131 return values | 131 return values |
132 end | 132 end |
133 | 133 |
134 function ab_testing.web_page(test_names) | 134 function ab_testing.web_page(test_names) |
135 return { service = function() | 135 return { respond = function() |
136 local results = {} | 136 local results = {} |
137 for _, name in ipairs(test_names) do | 137 for _, name in ipairs(test_names) do |
138 local test = ab_testing.test_map[name] | 138 local test = ab_testing.test_map[name] |
139 test or error("test not found: "..name) | 139 test or error("test not found: "..name) |
140 results[name] = test.fancy_results() | 140 results[name] = test.fancy_results() |