def test_ast_unicode_strings():
 def _compile_string(s):
  hy_s = HyString(s)
  hy_s.start_line = hy_s.end_line = 0
  hy_s.start_column = hy_s.end_column = 0
  code = hy_compile([hy_s], u'__main__')
  return code.body[0].value.s
 assert (_compile_string(u'test') == u'test')
 assert (_compile_string(u'\u03b1\u03b2') == u'\u03b1\u03b2')
 assert (_compile_string(u'\xc3\xa9') == u'\xc3\xa9')

def test_ast_unicode_strings ( ) : def _compile_string ( s ) : hy_s = HyString ( s ) hy_s . start_line = hy_s . end_line = 0 hy_s . start_column = hy_s . end_column = 0 code = hy_compile ( [ hy_s ] , u'__main__' ) return code . body [ 0 ] . value . s assert ( _compile_string ( u'test' ) == u'test' ) assert ( _compile_string ( u'\u03b1\u03b2' ) == u'\u03b1\u03b2' ) assert ( _compile_string ( u'\xc3\xa9' ) == u'\xc3\xa9' )
ensure we handle unicode strings correctly .