From 4e974e6d6020a518709364c6d0f97afcee8e77dc Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 8 Jun 2021 09:15:02 -0400 Subject: [PATCH] LibSQL: Rename expression tree depth limit test case Meant to rename this before committing the test - 'stack_limit' isn't a great name when there's multiple test cases for various stack overflows. --- Tests/LibSQL/TestSqlExpressionParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/LibSQL/TestSqlExpressionParser.cpp b/Tests/LibSQL/TestSqlExpressionParser.cpp index 4cf58324f2c..15bd8d8415d 100644 --- a/Tests/LibSQL/TestSqlExpressionParser.cpp +++ b/Tests/LibSQL/TestSqlExpressionParser.cpp @@ -603,7 +603,7 @@ TEST_CASE(in_selection_expression) validate("15 NOT IN (SELECT * FROM table)", true); } -TEST_CASE(stack_limit) +TEST_CASE(expression_tree_depth_limit) { auto too_deep_expression = String::formatted("{:+^{}}1", "", SQL::Limits::maximum_expression_tree_depth); EXPECT(!parse(too_deep_expression.substring_view(1)).is_error());