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

rawset(_G, 'TEST', true)

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

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