mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
11 lines
253 B
Crystal
11 lines
253 B
Crystal
|
require "../../../spec_helper"
|
||
|
|
||
|
module Ameba::AST
|
||
|
describe Reference do
|
||
|
it "is derived from a Variable" do
|
||
|
node = Crystal::Var.new "foo"
|
||
|
Reference.new(node, Scope.new as_node "foo = 1").is_a?(Variable).should be_true
|
||
|
end
|
||
|
end
|
||
|
end
|