Fix _q_format() test for 'r' conversion, add 'a' conversion test.

This commit is contained in:
Neil Schemenauer 2017-08-11 14:53:57 -07:00
parent 00cf6af51f
commit d955d01d2f
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ class Test (UTest):
assert _q_format('&') == '&'
assert _q_format(htmltext('&')) == '&'
assert _q_format('a', ord('r')) == "'a'"
assert _q_format(htmltext('a'), ord('r')) == "'a'"
assert _q_format('\xff', ord('r')) == "'\xff'"
assert _q_format('\xff', ord('a')) == "'\\xff'"
assert _q_format(1, -1, '_>2') == '_1'
assert _q_format(1, -1, '_>2') == '_1'
assert _q_format(64, -1, 'c') == '@'