Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Error:
- test_spec {adobe font metrics} 001 [should calculate string width taking into account accented characters](adobe font metrics):
- ArgumentError: malformed UTF-8 character (expected 3 bytes, given 1 bytes)
- ./lib/prawn/font/metrics.rb:106:in `unpack'
- ./lib/prawn/font/metrics.rb:106:in `string_width'
- ./spec/metrics_spec.rb:13:in `test_spec {adobe font metrics} 001 [should calculate string width taking into account accented characters]'
- /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__'
- /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run'
- 2) Error:
- test_spec {adobe font metrics} 002 [should calculate string width taking into account kerning pairs](adobe font metrics):
- ArgumentError: malformed UTF-8 character (expected 4 bytes, given 1 bytes)
- ./lib/prawn/font/metrics.rb:106:in `unpack'
- ./lib/prawn/font/metrics.rb:106:in `string_width'
- ./lib/prawn/font/metrics.rb:100:in `string_width'
- ./lib/prawn/font/metrics.rb:106:in `inject'
- ./lib/prawn/font/metrics.rb:98:in `each'
- ./lib/prawn/font/metrics.rb:98:in `inject'
- ./lib/prawn/font/metrics.rb:98:in `string_width'
- ./spec/metrics_spec.rb:19:in `test_spec {adobe font metrics} 002 [should calculate string width taking into account kerning pairs]'
- /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__'
- /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run'
- 3) Failure:
- test_spec {when drawing text} 011 [should correctly render a utf-8 string when using a built-in font](when drawing text)
- [./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]'
- /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `__send__'
- /usr/local/lib/ruby/gems/1.8/gems/mocha-0.5.5/lib/mocha/test_case_adapter.rb:19:in `run']:
- <"\302\251"> expected but was
- <"\302\254\302\251">.
Add Comment
Please, Sign In to add comment