Mercurial Hosting > luan
diff lucene/src/luan/modules/lucene/Ab_testing.luan @ 505:7bc63886d4f2
web page modules now return a function
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 May 2015 01:45:49 -0600 |
parents | 92c3d22745b8 |
children | 473e456444ff |
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/Ab_testing.luan Thu May 21 01:09:35 2015 -0600 +++ b/lucene/src/luan/modules/lucene/Ab_testing.luan Thu May 21 01:45:49 2015 -0600 @@ -133,7 +133,7 @@ end function ab_testing.web_page(test_names) - return { respond = function() + return function() local results = {} for _, name in ipairs(test_names) do local test = ab_testing.test_map[name] @@ -142,7 +142,7 @@ end Io.stdout = Http.response.text_writer() M.html(test_names,ab_testing.test_map,results) - end } + end end return ab_testing