summaryrefslogtreecommitdiff
path: root/server/test/vm/init.lua
blob: 6e7dc3ac97c4c48fc1ee1843f7a2aa07ceebaf63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local core = require 'core'
local parser  = require 'parser'

rawset(_G, 'TEST', true)

function TEST(script)
    local ast = parser:ast(script)
    assert(ast)
    local vm = core.vm(ast)
    assert(vm)
    local results = vm.results
    assert(results)
end

require 'vm.normal'
require 'vm.example'
require 'vm.dirty'