mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
9 lines
427 B
Plaintext
9 lines
427 B
Plaintext
|
-- moonscript module
|
||
|
|
||
|
describe "moonscript.base", ->
|
||
|
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)
|
||
|
|