def test_reader_macro_error():
 try:
  macroexpand(tokenize("(dispatch_reader_macro '- '())")[0], HyASTCompiler(__name__))
 except HyTypeError as e:
  assert ('with the character `-`' in str(e))

def test_reader_macro_error ( ) : try : macroexpand ( tokenize ( "(dispatch_reader_macro '- '())" ) [ 0 ] , HyASTCompiler ( __name__ ) ) except HyTypeError as e : assert ( 'with the character `-`' in str ( e ) )
check if we get correct error with wrong dispatch character .