Mercurial Hosting > luan
comparison scripts/test.luan @ 494:2b9bc97f0439
change luan:web to luan:http
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 15 May 2015 17:43:13 -0600 |
parents | 5b36f663a1b8 |
children | 598123096772 |
comparison
equal
deleted
inserted
replaced
493:1d082a0812e0 | 494:2b9bc97f0439 |
---|---|
1 local Luan = require "luan:Luan" | 1 local Luan = require "luan:Luan" |
2 local assert = Luan.assert | 2 local assert = Luan.assert |
3 local range = Luan.range | 3 local range = Luan.range |
4 local Io = require "luan:Io" | 4 local Io = require "luan:Io" |
5 local Http = require "luan:web/Http" | 5 local Http = require "luan:http/Http" |
6 local Lucene = require "luan:lucene/Lucene" | 6 local Lucene = require "luan:lucene/Lucene" |
7 local Ab_testing = require "luan:lucene/Ab_testing" | 7 local Ab_testing = require "luan:lucene/Ab_testing" |
8 | 8 |
9 | 9 |
10 local function print(...) | 10 local function print(...) |
11 Io.print_to(Io.stderr,...) | 11 Io.print_to(Io.stderr,...) |
12 end | 12 end |
13 | 13 |
14 function Io.schemes.site(path) | 14 function Io.schemes.site(path) |
15 return Io.uri( "luan:web"..path ) | 15 return Io.uri( "luan:http"..path ) |
16 end | 16 end |
17 | 17 |
18 | 18 |
19 Http.init_for_test() | 19 Http.init_for_test() |
20 Http.request.parameters.code = "require('luan:Io').print 'hi'" | 20 Http.request.parameters.code = "require('luan:Io').print 'hi'" |