diff options
Diffstat (limited to 'server/test/vm')
-rw-r--r-- | server/test/vm/example.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/test/vm/example.lua b/server/test/vm/example.lua index 5775465b..459545fd 100644 --- a/server/test/vm/example.lua +++ b/server/test/vm/example.lua @@ -3,4 +3,10 @@ local fs = require 'bee.filesystem' TEST(io.load(ROOT / 'src' / 'core' / 'vm.lua')) -- 临时 -TEST(io.load(fs.path [[D:\Github\lua\testes\constructs.lua]])) +local function testIfExit(path) + local buf = io.load(fs.path(path)) + if buf then + TEST(buf) + end +end +testIfExit[[D:\Github\lua\testes\constructs.lua]] |