test/hexapdf/test_dictionary.rb in hexapdf-0.1.0 vs test/hexapdf/test_dictionary.rb in hexapdf-0.2.0

- old
+ new

@@ -121,9 +121,13 @@ result = @dict[:Binary] assert_equal('test', result) assert_equal(Encoding::BINARY, result.encoding) assert_kind_of(HexaPDF::Object, @dict.value[:Binary]) assert_same(result, @dict.value[:Binary].value) + + @dict[:Test] = HexaPDF::Dictionary.new({}) + @dict[:Test].data.value = nil + assert_nil(@dict[:Test]) end end describe "[]=" do it "directly stores the value if the stored value is no HexaPDF::Object" do