function TestPlan.findNodes(C,R)local w={}C:visitAllNodes(function(C)if R(C)then table.insert(w,C)end end)return w end return TestPlan
--[[
	Gets a list of all nodes in the tree for which the given callback returns
	true.
]]
function TestPlan:findNodes(callback)
	local results = {}
	self:visitAllNodes(function(node)
		if callback(node) then
			table.insert(results, node)
		end
	end)
	return results
end

return TestPlan
