test/latexpdf/escaper_test.rb in latexpdf-0.4.7 vs test/latexpdf/escaper_test.rb in latexpdf-0.4.8
- old
+ new
@@ -36,9 +36,15 @@
def test_escape_backslash
assert_equal "\\textbackslash{}", Latexpdf.escape_latex("\\")
end
+ # Although 007F is a valid UTF-8 char, xelatex does not like it
+ # Since it is not visible (DELETE) we substitute with nothing
+ def test_remove_utf8_delete
+ assert_equal "text:", Latexpdf.escape_latex("text:\u007F")
+ end
+
def test_escape_percent_sign
assert_equal "\\%", Latexpdf.escape_latex("%")
end
end
end