Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
module no longer global
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Feb 24, 2012
1 parent 915a61d commit 93403c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions src/Test/LongString.lua
Expand Up @@ -230,8 +230,6 @@ for k, v in pairs(m) do -- injection
_G[k] = v
end
end
_G.Test = _G.Test or {}
_G.Test.LongString = m

m._VERSION = "0.1.3"
m._DESCRIPTION = "lua-TestLongString : an extension for testing long string"
Expand Down
3 changes: 1 addition & 2 deletions test/00require.t
@@ -1,15 +1,14 @@
#! /usr/bin/lua

require 'Test.More'
plan(9)
plan(8)

if not require_ok 'Test.LongString' then
BAIL_OUT "no lib"
end

local m = require 'Test.LongString'
type_ok( m, 'table' )
is( m, Test.LongString )
like( m._COPYRIGHT, 'Perrad', "_COPYRIGHT" )
like( m._DESCRIPTION, 'extension', "_DESCRIPTION" )
like( m._VERSION, '^%d%.%d%.%d$', "_VERSION" )
Expand Down

0 comments on commit 93403c7

Please sign in to comment.