Skip to content

Commit e7f3fa1

Browse files
committed
✅🚧 Mark 2 ::Data tests as pending for JRuby
1 parent 5cabbc7 commit e7f3fa1

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

test/net/imap/test_data_lite.rb

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -174,30 +174,32 @@ def initialize(value:, head: nil, tail: nil)
174174
end
175175
end
176176

177-
# anonymous class
178-
list = klass[value: 1, tail: [2, 3, 4]]
179-
seen = "#<data #{klass.inspect}:...>"
180-
assert_equal(
181-
"#<data value=1, head=nil," \
182-
" tail=#<data value=2, head=#{seen}," \
183-
" tail=#<data value=3, head=#{seen}," \
184-
" tail=#<data value=4, head=#{seen}," \
185-
" tail=nil>>>>",
186-
list.inspect
187-
)
188-
189-
# named class
190-
Object.const_set(:DoubleLinkList, klass)
191-
list = DoubleLinkList[value: 1, tail: [2, 3, 4]]
192-
seen = "#<data DoubleLinkList:...>"
193-
assert_equal(
194-
"#<data DoubleLinkList value=1, head=nil," \
195-
" tail=#<data DoubleLinkList value=2, head=#{seen}," \
196-
" tail=#<data DoubleLinkList value=3, head=#{seen}," \
197-
" tail=#<data DoubleLinkList value=4, head=#{seen}," \
198-
" tail=nil>>>>",
199-
list.inspect
200-
)
177+
pend_if_jruby do
178+
# anonymous class
179+
list = klass[value: 1, tail: [2, 3, 4]]
180+
seen = "#<data #{klass.inspect}:...>"
181+
assert_equal(
182+
"#<data value=1, head=nil," \
183+
" tail=#<data value=2, head=#{seen}," \
184+
" tail=#<data value=3, head=#{seen}," \
185+
" tail=#<data value=4, head=#{seen}," \
186+
" tail=nil>>>>",
187+
list.inspect
188+
)
189+
190+
# named class
191+
Object.const_set(:DoubleLinkList, klass)
192+
list = DoubleLinkList[value: 1, tail: [2, 3, 4]]
193+
seen = "#<data DoubleLinkList:...>"
194+
assert_equal(
195+
"#<data DoubleLinkList value=1, head=nil," \
196+
" tail=#<data DoubleLinkList value=2, head=#{seen}," \
197+
" tail=#<data DoubleLinkList value=3, head=#{seen}," \
198+
" tail=#<data DoubleLinkList value=4, head=#{seen}," \
199+
" tail=nil>>>>",
200+
list.inspect
201+
)
202+
end
201203
ensure
202204
Object.instance_eval { remove_const(:DoubleLinkList) } rescue nil
203205
end
@@ -362,7 +364,9 @@ class InheritsClassMethod < AbstractWithClassMethod.define(:foo)
362364
end
363365

364366
def test_subclass_class_method
365-
assert_equal :ok, InheritsClassMethod.inherited_class_method
367+
pend_if_jruby do
368+
assert_equal :ok, InheritsClassMethod.inherited_class_method
369+
end
366370
end
367371

368372
class AbstractWithOverride < Data

0 commit comments

Comments
 (0)