Skip to content

Commit

Permalink
update a spec to pass on 1.8 and 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yob committed Aug 13, 2012
1 parent 13f7744 commit 2e54d08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,9 @@
# pdf-reader would return Nil instead of the correct unicode character
PDF::Reader.open(filename) do |reader|
page = reader.page(1)
m = /\u{1d475}\u{1d468}\u{1d47a}\u{1d46a}\u{1d468}\u{1d479}/.match(page.text)
m[0].to_s.should eql("\u{1d475}\u{1d468}\u{1d47a}\u{1d46a}\u{1d468}\u{1d479}")
# 𝑵𝑨𝑺𝑪𝑨𝑹
utf8_str = [0x1d475, 0x1d468, 0x1d47a, 0x1d46a, 0x1d468, 0x1d479].pack("U*")
page.text.should include(utf8_str)
end
end

Expand Down

0 comments on commit 2e54d08

Please sign in to comment.