From 0e02ead0de61876f14bf950c33585a73443295a5 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 10 Mar 2020 15:53:42 -0700 Subject: [PATCH] Update tags test to reflect new handling of escapes in queries --- cli/src/tests/tags_test.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/src/tests/tags_test.rs b/cli/src/tests/tags_test.rs index fe030574..dac0a90a 100644 --- a/cli/src/tests/tags_test.rs +++ b/cli/src/tests/tags_test.rs @@ -10,13 +10,13 @@ fn test_tags_python() { ((function_definition name: (identifier) @name body: (block . (expression_statement (string) @doc))) @function - (set! strip @doc "(^['\s]*)|(['\s]*$)")) + (set! strip @doc "(^['\"\\s]*)|(['\"\\s]*$)")) (function_definition name: (identifier) @name) @function ((class_definition name: (identifier) @name body: (block . (expression_statement (string) @doc))) @class - (set! strip @doc "(^['\s]*)|(['\s]*$)")) + (set! strip @doc "(^['\"\\s]*)|(['\"\\s]*$)")) (class_definition name: (identifier) @name) @class (call @@ -32,9 +32,9 @@ fn test_tags_python() { &tags_config, br#" class Customer: - ''' + """ Data about a customer - ''' + """ def age(self): '''