Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Also added test for charsh bug with Struct.new without parameters.

  • Loading branch information...
commit 3f670f7f4455bf5dbdb39cfcfd15d392f12de588 1 parent 38e3b67
Beoran authored
Showing with 5 additions and 5 deletions.
  1. 0  build/.gitkeep
  2. +5 −5 test/t/struct.rb
View
0  build/.gitkeep
No changes.
View
10 test/t/struct.rb
@@ -16,11 +16,11 @@
c.members == [:m1,:m2]
end
- # Crash bug withStruc.new and no params, should make empty struct?
- # assert('Struct.new', '15.2.18.3.1') do
- # c = Struct.new()
- # c.superclass == Struct
- # end
+ # Check crash bug with Struc.new and no params.
+ assert('Struct.new', '15.2.18.3.1') do
+ c = Struct.new()
+ c.superclass == Struct and c.members == []
+ end
assert('Struct#==', '15.2.18.4.1') do
c = Struct.new(:m1, :m2)
Please sign in to comment.
Something went wrong with that request. Please try again.