test/hexapdf/test_reference.rb in hexapdf-0.9.3 vs test/hexapdf/test_reference.rb in hexapdf-0.10.0
- old
+ new
@@ -38,9 +38,13 @@
h[HexaPDF::Reference.new(5, 7)] = true
assert(h.key?(HexaPDF::Reference.new(5, 7)))
refute(h.key?(HexaPDF::Reference.new(5, 8)))
end
+ it "shows the PDF serialization as string representation " do
+ assert_equal("5 7 R", HexaPDF::Reference.new(5, 7).to_s)
+ end
+
it "shows oid and gen on inspection" do
assert_match(/\[5, 7\]/, HexaPDF::Reference.new(5, 7).inspect)
end
end