Skip to content

Commit

Permalink
Separate a scenario to two
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Jul 23, 2024
1 parent 808006c commit dacb005
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scenario/variable/gvar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,9 @@ def baz
$VERBOSE
end

def nth_group_of_last_match
[$1, $2, $3, $4, $5, $6, $7, $8, $9, $10]
end

def back_reference
$&
end

## assert
class Object
def foo: -> String
def bar: -> String
def baz: -> bool?
def nth_group_of_last_match: -> [String, String, String, String, String, String, String, String, String, String]
def back_reference: -> String
end
14 changes: 14 additions & 0 deletions scenario/variable/special-vars.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## update
def nth_group_of_last_match
[$1, $2, $3, $4, $5, $6, $7, $8, $9, $10]
end

def back_reference
$&
end

## assert
class Object
def nth_group_of_last_match: -> [String, String, String, String, String, String, String, String, String, String]
def back_reference: -> String
end

0 comments on commit dacb005

Please sign in to comment.