shard-ameba/spec/ameba/ast/traverse_spec.cr
Vitalii Elenhaupt 6a81a648e3
AST Util
2017-11-01 13:13:44 +02:00

18 lines
409 B
Crystal

require "../../spec_helper"
module Ameba::AST
rule = DummyRule.new
source = Source.new ""
describe "Traverse" do
{% for name in NODE_VISITORS %}
describe "{{name}}" do
it "allow to visit {{name}} node" do
visitor = {{name}}Visitor.new rule, source
nodes = Crystal::Parser.new("").parse
nodes.accept visitor
end
end
{% end %}
end
end