function TestPlan.addRoot(y,e,X)local j=y for X=#e,1,-1 do local y=nil for j,Z in ipairs(j.children)do if Z.phrase==e[X]then y=Z break end end if y==nil then y=j:addChild(e[X],TestEnum.NodeType.Describe)end j=y end j.callback=X j:expand()end

function TestPlan:addRoot(path, method)
	local curNode = self
	for i = #path, 1, -1 do
		local nextNode = nil

		for _, child in ipairs(curNode.children) do
			if child.phrase == path[i] then
				nextNode = child
				break
			end
		end

		if nextNode == nil then
			nextNode = curNode:addChild(path[i], TestEnum.NodeType.Describe)
		end

		curNode = nextNode
	end

	curNode.callback = method
	curNode:expand()
end
