mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
18 lines
405 B
Crystal
18 lines
405 B
Crystal
require "../spec_helper"
|
|
|
|
module Ameba
|
|
rule = DummyRule.new
|
|
source = Source.new ""
|
|
|
|
describe "AST 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
|