Mercurial Hosting > luan
comparison blog/src/lib/test.luan @ 629:35dde32c02ab 0.15
change String.matches()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 18 Jan 2016 23:07:52 -0700 |
parents | e930f92d0f61 |
children | ca169567ce07 |
comparison
equal
deleted
inserted
replaced
628:6510de302f95 | 629:35dde32c02ab |
---|---|
6 local init = Http_test.init or error() | 6 local init = Http_test.init or error() |
7 local get_page = Http_test.get_page or error() | 7 local get_page = Http_test.get_page or error() |
8 local Io = require "luan:Io" | 8 local Io = require "luan:Io" |
9 local print = Io.print or error() | 9 local print = Io.print or error() |
10 local String = require "luan:String" | 10 local String = require "luan:String" |
11 local match = String.match or error() | 11 local matches = String.matches or error() |
12 | 12 |
13 Http.uncache_site() | 13 Http.uncache_site() |
14 | 14 |
15 local Db_mod = require "site:/lib/Db_mod" | 15 local Db_mod = require "site:/lib/Db_mod" |
16 | 16 |
55 get_page '/edit' | 55 get_page '/edit' |
56 | 56 |
57 init() | 57 init() |
58 print '/ again' | 58 print '/ again' |
59 page = get_page '/' | 59 page = get_page '/' |
60 match(page,'this is an edit') or error() | 60 matches(page,'this is an edit') or error() |
61 | 61 |
62 print 'done' | 62 print 'done' |