comparison lucene/src/luan/modules/lucene/Ab_testing.luan @ 539:473e456444ff

Remove object-oriented primitive methods for string and binary
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 01 Jun 2015 17:53:55 -0600
parents 7bc63886d4f2
children c5a93767cc5c
comparison
equal deleted inserted replaced
538:919b9410008e 539:473e456444ff
3 local ipairs = Luan.ipairs 3 local ipairs = Luan.ipairs
4 local error = Luan.error 4 local error = Luan.error
5 local range = Luan.range 5 local range = Luan.range
6 local Math = require "luan:Math" 6 local Math = require "luan:Math"
7 local Table = require "luan:Table" 7 local Table = require "luan:Table"
8 local String = require "luan:String"
9 local gsub = String.gsub
8 local Io = require "luan:Io" 10 local Io = require "luan:Io"
9 local Http = require "luan:http/Http" 11 local Http = require "luan:http/Http"
10 local Logging = require "luan:logging/Logging" 12 local Logging = require "luan:logging/Logging"
11 13
12 local M = {} 14 local M = {}
200 table.results tr:nth-child(odd) td {background:#f8f8f8} 202 table.results tr:nth-child(odd) td {background:#f8f8f8}
201 <% end 203 <% end
202 204
203 local function format(v) 205 local function format(v)
204 v = v .. '' 206 v = v .. ''
205 return v.gsub([[(\d+\.\d{1})\d+]],'$1') 207 return gsub( v, [[(\d+\.\d{1})\d+]], '$1' )
206 end 208 end
207 209
208 function M.html(test_names,tests,results) %> 210 function M.html(test_names,tests,results) %>
209 <!DOCTYPE html> 211 <!DOCTYPE html>
210 <html lang="en"> 212 <html lang="en">