test/hexapdf/utils/test_object_hash.rb in hexapdf-0.13.0 vs test/hexapdf/utils/test_object_hash.rb in hexapdf-0.14.0
- old
+ new
@@ -110,6 +110,11 @@
assert_equal(5, @hash.max_oid)
@hash.delete(5)
assert_equal(3, @hash.max_oid)
end
end
+
+ it "can return a list of all object IDs" do
+ @hash[1, 0] = @hash[3, 1] = 7
+ assert_equal([3, 1], @hash.oids)
+ end
end