Skip to content

Commit

Permalink
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions test/jruby/test_array.rb
Original file line number Diff line number Diff line change
@@ -24,11 +24,6 @@ def test_uniq_with_block_after_slice
assert_equal [1], [1, 1, 1][1,2].uniq! { |x| x }
end

def test_uniq_with_block_after_slice
assert_equal [1], [1, 1, 1][1,2].uniq { |x| x }
assert_equal [1], [1, 1, 1][1,2].uniq! { |x| x }
end

# JRUBY-4157
def test_shared_ary_slice
assert_equal [4,5,6], [1,2,3,4,5,6].slice(1,5).slice!(2,3)
4 changes: 2 additions & 2 deletions test/jruby/test_kernel.rb
Original file line number Diff line number Diff line change
@@ -106,11 +106,11 @@ def test_Float
# binding
# block_given?
class CheckBlockGiven; def self.go() block_given? end; end
def test_iterator?
def test_block_given?
assert !(Kernel.block_given?)
assert(CheckBlockGiven.go { true })
assert(!CheckBlockGiven.go)
assert(!CheckBlockGiven.go(&Proc.new))
assert(CheckBlockGiven.go(&Proc.new{}))
end

# callcc

0 comments on commit 3bbaba8

Please sign in to comment.