Skip to content

Commit

Permalink
splat bug
Browse files Browse the repository at this point in the history
  • Loading branch information
XrXr committed Apr 5, 2024
1 parent 6bc3fcb commit e39f278
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions KNOWNBUGS.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@
# This test file includes tests which point out known bugs.
# So all tests will cause failure.
#
assert_equal "[1, 2, 3, 4]", %q{
def foo(*b) = b
def forward(...)
splat = [1,2,3]
foo(*splat, ...)
end
forward(4)
}
2 changes: 1 addition & 1 deletion bootstraptest/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def add as
def initialize(*args)
super
self.class.add self
@category = self.path.match(/test_(.+)\.rb/)[1]
@category = self.path.match(/test_(.+)\.rb/)&.[](1)
end

def call
Expand Down

0 comments on commit e39f278

Please sign in to comment.