Skip to content

Commit

Permalink
Implement DefNode (defs)
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed Jul 7, 2024
1 parent a6787f2 commit feca311
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions spec/basic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,48 @@ def m(a, b) = a + b
end

describe "defs" do
it "tests" do
pending "DefNode locations are not supported"

test_code(<<~CODE)
def obj.m
end
CODE
end

it "tests" do
pending "DefNode locations are not supported"

test_code(<<~CODE)
def obj.m(a, b)
end
CODE
end

it "tests" do
pending "DefNode locations are not supported"

test_code(<<~CODE)
def obj.m a, b
end
CODE
end

it "tests" do
pending "DefNode locations are not supported"

test_code(<<~CODE)
def obj.m = 1
CODE
end

it "tests" do
pending "DefNode locations are not supported"

test_code(<<~CODE)
def obj.m(a, b) = a + b
CODE
end
end

describe "args" do
Expand Down

0 comments on commit feca311

Please sign in to comment.