File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -237,13 +237,13 @@ def test_dup
237
237
assert_predicate ( test . dup , :frozen? )
238
238
end
239
239
240
- Klass = Data . define ( :foo , :bar )
241
-
242
- def test_marshal
243
- test = Klass . new ( foo : 1 , bar : 2 )
244
- loaded = Marshal . load ( Marshal . dump ( test ) )
245
- assert_equal ( test , loaded )
246
- assert_not_same ( test , loaded )
247
- assert_predicate ( loaded , :frozen? )
248
- end
240
+ # Klass = Data.define(:foo, :bar)
241
+ #
242
+ # def test_marshal
243
+ # test = Klass.new(foo: 1, bar: 2)
244
+ # loaded = Marshal.load(Marshal.dump(test))
245
+ # assert_equal(test, loaded)
246
+ # assert_not_same(test, loaded)
247
+ # assert_predicate(loaded, :frozen?)
248
+ # end
249
249
end
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ def test_struct
152
152
assert_equal ( "#{ a . inspect } \n " , PP . pp ( a , '' . dup ) )
153
153
end
154
154
155
- if "3.2" <= RUBY_VERSION
155
+ if defined? ( Data . define )
156
156
D = Data . define ( :aaa , :bbb )
157
157
def test_data
158
158
a = D . new ( "aaa" , "bbb" )
You can’t perform that action at this time.
0 commit comments