Changeset 4339:10371157d91f in livinglogic.python.xist

Show
Ignore:
Timestamp:
02/14/11 17:14:40 (8 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

More escape tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_ul4.py

    r4336 r4339  
    307307        yield eq, '\a', r(u'<?print "\\a"?>') 
    308308        yield eq, '\x1b', r(u'<?print "\\e"?>') 
     309        yield eq, '\x00', r(u'<?print "\\x00"?>') 
    309310        yield eq, '"', r(u'<?print "\\""?>') 
    310311        yield eq, "'", r(u'<?print "\\\'"?>') 
     
    313314        yield eq, u'\u20ac', r(u'''<?print "\\u20ac"?>''') 
    314315        yield eq, "a\nb", r(u'<?print "a\nb"?>') 
     316        for c in u"\x00\x80\u0100\u3042\n\r\t\f\b\a\e\"": 
     317            yield eq, c, r(u'<?print obj?>', obj=c) # This tests :func:`misc.javaexpr` for Java and :func:`ul4c._json` for JS 
    315318 
    316319        # Test escapes