From 72954f36bfcad29cbb4bb324763d4c03b9fa4601 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 8 Oct 2020 17:44:00 +0200 Subject: Deleted duplicated tests, Added error_eof_to_expected_token hook --- src/hooks.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/hooks.py') diff --git a/src/hooks.py b/src/hooks.py index 5ec2dde..58cc7a0 100644 --- a/src/hooks.py +++ b/src/hooks.py @@ -6,7 +6,7 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/11 16:10:20 by charles #+# #+# # -# Updated: 2020/10/08 11:43:54 by cacharle ### ########.fr # +# Updated: 2020/10/08 17:32:12 by cacharle ### ########.fr # # # # ############################################################################ # @@ -99,3 +99,10 @@ def delete_escape(output): return output.replace("\\", "") else: return output + + +def error_eof_to_expected_token(output): + return output.replace( + "-c: line 1: syntax error: unexpected end of file", + "syntax error expected token" + ) -- cgit