Mercurial Hosting > luan
comparison scripts/test.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 | 55f9f74f1e55 |
comparison
equal
deleted
inserted
replaced
494:2b9bc97f0439 | 495:598123096772 |
---|---|
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,add_extension) |
15 return Io.uri( "luan:http"..path ) | 15 return Io.uri( "luan:http"..path, add_extension ) |
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'" |
49 ab_testing.to_doc(doc) | 49 ab_testing.to_doc(doc) |
50 db.save_document(doc) | 50 db.save_document(doc) |
51 end | 51 end |
52 | 52 |
53 Http.init_for_test() | 53 Http.init_for_test() |
54 ab_testing.web_page{"All","null"}.service() | 54 ab_testing.web_page{"All","null"}.respond() |
55 | 55 |
56 | 56 |
57 print "done" | 57 print "done" |