summaryrefslogtreecommitdiff
path: root/ext/-test-/st/foreach/foreach.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-07 05:57:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-07 05:57:43 +0000
commit81234c5ecaab58e03e346ebdbf5678e4b8a3db55 (patch)
tree3e291a26fec6b193bb7cca54e312e6d6d4801aaf /ext/-test-/st/foreach/foreach.c
parente432492b4062931f656624f7904b73f89dfa4790 (diff)
parent4c5f4258aac15c8162e8e9c08ad45781511c3d48 (diff)
add tag v2_4_0_preview3v2_4_0_preview3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v2_4_0_preview3@56661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/st/foreach/foreach.c')
-rw-r--r--ext/-test-/st/foreach/foreach.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/-test-/st/foreach/foreach.c b/ext/-test-/st/foreach/foreach.c
index 1e0fd515c9..209b535503 100644
--- a/ext/-test-/st/foreach/foreach.c
+++ b/ext/-test-/st/foreach/foreach.c
@@ -14,13 +14,13 @@ force_unpack_check(struct checker *c, st_data_t key, st_data_t val)
if (c->nr == 0) {
st_data_t i;
- if (!c->tbl->entries_packed) rb_bug("should be packed\n");
+ if (c->tbl->bins != NULL) rb_bug("should be packed\n");
/* force unpacking during iteration: */
for (i = 1; i < expect_size; i++)
st_add_direct(c->tbl, i, i);
- if (c->tbl->entries_packed) rb_bug("should be unpacked\n");
+ if (c->tbl->bins == NULL) rb_bug("should be unpacked\n");
}
if (key != c->nr) {
@@ -84,7 +84,7 @@ unp_fec(VALUE self, VALUE test)
st_add_direct(tbl, 0, 0);
- if (!tbl->entries_packed) rb_bug("should still be packed\n");
+ if (tbl->bins != NULL) rb_bug("should still be packed\n");
st_foreach_check(tbl, unp_fec_i, (st_data_t)&c, -1);
@@ -98,7 +98,7 @@ unp_fec(VALUE self, VALUE test)
(VALUE)c.nr, (VALUE)expect_size);
}
- if (tbl->entries_packed) rb_bug("should be unpacked\n");
+ if (tbl->bins == NULL) rb_bug("should be unpacked\n");
st_free_table(tbl);
@@ -145,7 +145,7 @@ unp_fe(VALUE self, VALUE test)
st_add_direct(tbl, 0, 0);
- if (!tbl->entries_packed) rb_bug("should still be packed\n");
+ if (tbl->bins != NULL) rb_bug("should still be packed\n");
st_foreach(tbl, unp_fe_i, (st_data_t)&c);
@@ -159,7 +159,7 @@ unp_fe(VALUE self, VALUE test)
(VALUE)c.nr, (VALUE)expect_size);
}
- if (tbl->entries_packed) rb_bug("should be unpacked\n");
+ if (tbl->bins == NULL) rb_bug("should be unpacked\n");
st_free_table(tbl);