Guest User

Untitled

a guest
May 20th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. 1) Error:
  2. test_spec {adobe font metrics} 001 [should calculate string width taking into account accented characters](adobe font metrics):
  3. ArgumentError: malformed UTF-8 character (expected 3 bytes, given 1 bytes)
  4. ./lib/prawn/font/metrics.rb:106:in `unpack'
  5. ./lib/prawn/font/metrics.rb:106:in `string_width'
  6. ./spec/metrics_spec.rb:13:in `test_spec {adobe font metrics} 001 [should calculate string width taking into account accented characters]'
  7. /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__'
  8. /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run'
  9.  
  10. 2) Error:
  11. test_spec {adobe font metrics} 002 [should calculate string width taking into account kerning pairs](adobe font metrics):
  12. ArgumentError: malformed UTF-8 character (expected 4 bytes, given 1 bytes)
  13. ./lib/prawn/font/metrics.rb:106:in `unpack'
  14. ./lib/prawn/font/metrics.rb:106:in `string_width'
  15. ./lib/prawn/font/metrics.rb:100:in `string_width'
  16. ./lib/prawn/font/metrics.rb:106:in `inject'
  17. ./lib/prawn/font/metrics.rb:98:in `each'
  18. ./lib/prawn/font/metrics.rb:98:in `inject'
  19. ./lib/prawn/font/metrics.rb:98:in `string_width'
  20. ./spec/metrics_spec.rb:19:in `test_spec {adobe font metrics} 002 [should calculate string width taking into account kerning pairs]'
  21. /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__'
  22. /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run'
  23.  
  24. 3) Failure:
  25. test_spec {when drawing text} 011 [should correctly render a utf-8 string when using a built-in font](when drawing text)
  26. [./spec/text_spec.rb:172:in `test_spec {when drawing text} 011 [should correctly render a utf-8 string when using a built-in font]'
  27. /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__'
  28. /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']:
  29. <"\302\251"> expected but was
  30. <"\302\254\302\251">.
Add Comment
Please, Sign In to add comment