mirror of
https://github.com/leafo/moonscript.git
synced 2024-12-08 01:54:24 +00:00
13 lines
485 B
Plaintext
13 lines
485 B
Plaintext
-- moonscript module
|
|
|
|
import with_dev from require "spec.helpers"
|
|
|
|
describe "moonscript.base", ->
|
|
with_dev!
|
|
|
|
it "should create moonpath", ->
|
|
path = ";./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib/lua/5.1/?.luac;/home/leafo/.luarocks/lua/5.1/?.lua"
|
|
import create_moonpath from require "moonscript.base"
|
|
assert.same "./?.moon;/usr/share/lua/5.1/?.moon;/usr/share/lua/5.1/?/init.moon;/home/leafo/.luarocks/lua/5.1/?.moon", create_moonpath(path)
|
|
|