[前][次][番号順一覧][スレッド一覧]

ruby-changes:74148

From: Jemma <ko1@a...>
Date: Fri, 21 Oct 2022 03:59:51 +0900 (JST)
Subject: [ruby-changes:74148] 6aed5b0c11 (master): Unmark Internal IV test as pending

https://git.ruby-lang.org/ruby.git/commit/?id=6aed5b0c11

From 6aed5b0c11eab5f5b51ef9343cae9313f425c50e Mon Sep 17 00:00:00 2001
From: Jemma Issroff <jemmaissroff@g...>
Date: Wed, 19 Oct 2022 14:56:22 -0400
Subject: Unmark Internal IV test as pending

Co-Authored-By: Aaron Patterson <tenderlove@r...>
---
 ext/-test-/marshal/internal_ivar/internal_ivar.c | 5 +----
 test/-ext-/marshal/test_internal_ivar.rb         | 1 -
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/ext/-test-/marshal/internal_ivar/internal_ivar.c b/ext/-test-/marshal/internal_ivar/internal_ivar.c
index de0cf711aa..b2188f737a 100644
--- a/ext/-test-/marshal/internal_ivar/internal_ivar.c
+++ b/ext/-test-/marshal/internal_ivar/internal_ivar.c
@@ -36,10 +36,7 @@ Init_internal_ivar(void) https://github.com/ruby/ruby/blob/trunk/ext/-test-/marshal/internal_ivar/internal_ivar.c#L36
     VALUE newclass = rb_define_class_under(mMarshal, "InternalIVar", rb_cObject);
 
     id_normal_ivar = rb_intern_const("normal");
-#if 0
-    /* leave id_internal_ivar being 0 */
-    id_internal_ivar = rb_make_internal_id();
-#endif
+    id_internal_ivar = rb_intern_const("K");
     id_encoding_short = rb_intern_const("E");
     rb_define_method(newclass, "initialize", init, 3);
     rb_define_method(newclass, "normal", get_normal, 0);
diff --git a/test/-ext-/marshal/test_internal_ivar.rb b/test/-ext-/marshal/test_internal_ivar.rb
index 9359c7f113..a32138f6e8 100644
--- a/test/-ext-/marshal/test_internal_ivar.rb
+++ b/test/-ext-/marshal/test_internal_ivar.rb
@@ -7,7 +7,6 @@ module Bug end https://github.com/ruby/ruby/blob/trunk/test/-ext-/marshal/test_internal_ivar.rb#L7
 module Bug::Marshal
   class TestInternalIVar < Test::Unit::TestCase
     def test_marshal
-      pend "We don't support IVs with ID of 0"
       v = InternalIVar.new("hello", "world", "bye")
       assert_equal("hello", v.normal)
       assert_equal("world", v.internal)
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]