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

Commit

Permalink
No reason these requires should be available everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
tongson committed Oct 1, 2016
1 parent d55e4e5 commit 9349ebb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/test.moon
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
T = require"cwtest".new!
lfs = require"lfs"
src = require"src"
moon_slash_src = require"moon.src"
moon_src = require"moon_src"

with T
\start "Function from a vendor/c module(lfs)"
lfs = require"lfs"
\eq type(lfs.rmdir), "function"
\exit! if not \done!
with T
\start "Function from a src/lua module(src)"
src = require"src"
\eq type(src.src), "function"
\exit! if not \done!
with T
\start "Function from a src/lua module directory (moonscript) (moon.src)"
moon_slash_src = require"moon.src"
\eq type(moon_slash_src.moon_slash_src), "function"
\exit! if not \done!
with T
\start "Function from a src/lua module (moonscript) (moon_src)"
moon_src = require"moon_src"
\eq type(moon_src.moon_src), "function"
\exit! if not \done!

0 comments on commit 9349ebb

Please sign in to comment.