Mercurial Hosting > luan
comparison scripts/test.luan @ 554:18504c41b0be
move debug() to Io and remove Debug module;
Io.print() now doesn't print newline if there is nothing to be printed;
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 18 Jun 2015 03:30:18 -0600 |
| parents | f4dfe9c64c25 |
| children | 195a64f948f2 |
comparison
equal
deleted
inserted
replaced
| 553:b1256e2d19a3 | 554:18504c41b0be |
|---|---|
| 1 local Binary = require "luan:Binary" | 1 local Binary = require "luan:Binary" |
| 2 local Debug = require "luan:Debug" | |
| 3 local Html = require "luan:Html" | 2 local Html = require "luan:Html" |
| 4 local Io = require "luan:Io" | 3 local Io = require "luan:Io" |
| 5 local Luan = require "luan:Luan" | 4 local Luan = require "luan:Luan" |
| 6 local Math = require "luan:Math" | 5 local Math = require "luan:Math" |
| 7 local Package = require "luan:Package" | 6 local Package = require "luan:Package" |
| 17 local Versioning = require "luan:lucene/Versioning" | 16 local Versioning = require "luan:lucene/Versioning" |
| 18 local Mail = require "luan:mail/Mail" | 17 local Mail = require "luan:mail/Mail" |
| 19 local Stripe = require "luan:stripe/Stripe" | 18 local Stripe = require "luan:stripe/Stripe" |
| 20 | 19 |
| 21 local error = Luan.error | 20 local error = Luan.error |
| 22 local range = Luan.range | 21 local range = Luan.range or error() |
| 23 local trim = String.trim | 22 local trim = String.trim or error() |
| 24 local find = String.find | 23 local find = String.find or error() |
| 25 local init = Http_test.init | 24 local init = Http_test.init or error() |
| 26 local get_page = Http_test.get_page | 25 local get_page = Http_test.get_page or error() |
| 27 local Ab_testing = require "luan:lucene/Ab_testing" | 26 local Ab_testing = require "luan:lucene/Ab_testing" |
| 28 | 27 |
| 29 | 28 |
| 30 local function print(...) | 29 local function print(...) |
| 31 Io.print_to(Io.stderr,...) | 30 Io.print_to(Io.stderr,...) |
