From f2699f0ae70362c064a056671b742a6eea1bf878 Mon Sep 17 00:00:00 2001 From: Ikelio Date: Sun, 23 Feb 2025 21:41:04 +0100 Subject: [PATCH] add needed tip in AboutMethods --- src/about_methods.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/about_methods.rb b/src/about_methods.rb index 788652699..c60e8f4d9 100644 --- a/src/about_methods.rb +++ b/src/about_methods.rb @@ -39,6 +39,7 @@ def test_sometimes_missing_parentheses_are_ambiguous # NOTE: wrong number of arguments is not a SYNTAX error, but a # runtime error. + # tip: When regex contains parentheses, you must escape them with backslash. def test_calling_global_methods_with_wrong_number_of_arguments exception = assert_raise(___(ArgumentError)) do my_global_method