diff scripts/test.luan @ 693:ca169567ce07

module URIs must now include ".luan"
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 19 Apr 2016 15:54:11 -0600
parents 195a64f948f2
children 5e3970ccd86a
line wrap: on
line diff
--- a/scripts/test.luan	Mon Apr 18 20:40:21 2016 -0600
+++ b/scripts/test.luan	Tue Apr 19 15:54:11 2016 -0600
@@ -1,21 +1,21 @@
-local Binary = require "luan:Binary"
-local Html = require "luan:Html"
-local Io = require "luan:Io"
-local Luan = require "luan:Luan"
-local Math = require "luan:Math"
-local Package = require "luan:Package"
-local String = require "luan:String"
-local Table = require "luan:Table"
-local Thread = require "luan:Thread"
-local Time = require "luan:Time"
-local Hosting = require "luan:host/Hosting"
-local Http = require "luan:http/Http"
-local Http_test = require "luan:http/Http_test"
-local Server = require "luan:http/Server"
-local Lucene = require "luan:lucene/Lucene"
-local Versioning = require "luan:lucene/Versioning"
-local Mail = require "luan:mail/Mail"
-local Stripe = require "luan:stripe/Stripe"
+local Binary = require "luan:Binary.luan"
+local Html = require "luan:Html.luan"
+local Io = require "luan:Io.luan"
+local Luan = require "luan:Luan.luan"
+local Math = require "luan:Math.luan"
+local Package = require "luan:Package.luan"
+local String = require "luan:String.luan"
+local Table = require "luan:Table.luan"
+local Thread = require "luan:Thread.luan"
+local Time = require "luan:Time.luan"
+local Hosting = require "luan:host/Hosting.luan"
+local Http = require "luan:http/Http.luan"
+local Http_test = require "luan:http/Http_test.luan"
+local Server = require "luan:http/Server.luan"
+local Lucene = require "luan:lucene/Lucene.luan"
+local Versioning = require "luan:lucene/Versioning.luan"
+local Mail = require "luan:mail/Mail.luan"
+local Stripe = require "luan:stripe/Stripe.luan"
 
 local error = Luan.error
 local range = Luan.range or error()
@@ -23,21 +23,21 @@
 local find = String.find or error()
 local init = Http_test.init or error()
 local get_page = Http_test.get_page or error()
-local Ab_testing = require "luan:lucene/Ab_testing"
+local Ab_testing = require "luan:lucene/Ab_testing.luan"
 
 
 local function print(...)
 	Io.print_to(Io.stderr,...)
 end
 
-function Io.schemes.site(path,add_extension)
-	return Io.uri( "luan:http"..path, add_extension )
+function Io.schemes.site(path)
+	return Io.uri( "luan:http"..path )
 end
 
 local page
 
 init()
-Http.request.parameter.code = "require('luan:Io').print 'hi'"
+Http.request.parameter.code = "require('luan:Io.luan').print 'hi'"
 page = get_page "/run"
 trim(page) == "hi" or error "failed"
 
@@ -76,7 +76,7 @@
 init()
 ab_testing.web_page{"All","null"}()
 
-local Web_search = require "luan:lucene/Web_search"
+local Web_search = require "luan:lucene/Web_search.luan"
 local web_search = Web_search.of(db)
 
 init()
@@ -91,8 +91,8 @@
 
 -- website
 
-function Io.schemes.site(path,add_extension)
-	return Io.uri( "file:../website/src"..path, add_extension )
+function Io.schemes.site(path)
+	return Io.uri( "file:../website/src"..path )
 end
 
 init(); get_page "/"