summaryrefslogtreecommitdiff
path: root/test/prism/ruby_api_test.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-12-25 17:34:06 +0900
committerHiroshi SHIBATA <[email protected]>2023-12-25 21:12:49 +0900
commitfa251d60aa9c6f271885a467a26249b29f291cd3 (patch)
tree859811df5e43f3329c16d53ca937c9171bddbf20 /test/prism/ruby_api_test.rb
parent12b69bf515111ecf4b550fe1e2c5ec81a6fcf43a (diff)
Revert "Revert all of commits after Prism 0.19.0 release"
This reverts commit d242e8416e99eaee4465e2681210ae8b7ecd6d34.
Diffstat (limited to 'test/prism/ruby_api_test.rb')
-rw-r--r--test/prism/ruby_api_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/prism/ruby_api_test.rb b/test/prism/ruby_api_test.rb
index 3bf89f3339..7bb80b481a 100644
--- a/test/prism/ruby_api_test.rb
+++ b/test/prism/ruby_api_test.rb
@@ -42,7 +42,9 @@ module Prism
assert_kind_of Prism::CallNode, Prism.parse("foo").value.statements.body[0]
assert_kind_of Prism::LocalVariableReadNode, Prism.parse("foo", scopes: [[:foo]]).value.statements.body[0]
- assert_equal 2, Prism.parse("foo", scopes: [[:foo], []]).value.statements.body[0].depth
+ assert_equal 1, Prism.parse("foo", scopes: [[:foo], []]).value.statements.body[0].depth
+
+ assert_equal [:foo], Prism.parse("foo", scopes: [[:foo]]).value.locals
end
def test_literal_value_method