test/hexapdf/font/encoding/test_difference_encoding.rb in hexapdf-0.12.0 vs test/hexapdf/font/encoding/test_difference_encoding.rb in hexapdf-0.12.1

- old
+ new

@@ -16,6 +16,14 @@ @enc.code_to_name[65] = :B assert_equal(:B, @enc.name(65)) assert_equal(:B, @enc.name(66)) end end + + describe "code" do + it "takes the encoding differences into account" do + assert_equal(65, @enc.code(:A)) + @enc.code_to_name[65] = :Known + assert_equal(65, @enc.code(:Known)) + end + end end