mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
unicode: Added a test to ensure that we title-case non-ASCII strings properly.
Refs #4749. git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fc8bdc1af4
commit
c62d6eea19
@ -76,6 +76,8 @@ u''
|
|||||||
>>> title('a nice title, isn\'t it?')
|
>>> title('a nice title, isn\'t it?')
|
||||||
u"A Nice Title, Isn't It?"
|
u"A Nice Title, Isn't It?"
|
||||||
|
|
||||||
|
>>> title(u'discoth\xe8que')
|
||||||
|
u'Discoth\xe8que'
|
||||||
|
|
||||||
>>> truncatewords(u'A sentence with a few words in it', 1)
|
>>> truncatewords(u'A sentence with a few words in it', 1)
|
||||||
u'A ...'
|
u'A ...'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user