Skip to content

Commit

Permalink
fix: rename back search_parser_test + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dranikpg committed Sep 8, 2023
1 parent e066b66 commit 1f17f56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/search/search_parser_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ namespace dfly::search {

using namespace std;

class SearchTest : public ::testing::Test {
class SearchParserTest : public ::testing::Test {
protected:
SearchTest() {
SearchParserTest() {
query_driver_.scanner()->set_debug(1);
}

Expand Down Expand Up @@ -64,7 +64,7 @@ class SearchTest : public ::testing::Test {
ASSERT_TRUE(caught); \
}

TEST_F(SearchTest, Scanner) {
TEST_F(SearchParserTest, Scanner) {
SetInput("ab cd");
// 3.5.1 does not have name() method.
// EXPECT_STREQ("term", tok.name());
Expand Down Expand Up @@ -103,7 +103,7 @@ TEST_F(SearchTest, Scanner) {
NEXT_ERROR();
}

TEST_F(SearchTest, Parse) {
TEST_F(SearchParserTest, Parse) {
EXPECT_EQ(0, Parse(" foo bar (baz) "));
EXPECT_EQ(0, Parse(" -(foo) @foo:bar @ss:[1 2]"));
EXPECT_EQ(0, Parse("@foo:{ tag1 | tag2 }"));
Expand All @@ -114,7 +114,7 @@ TEST_F(SearchTest, Parse) {
EXPECT_EQ(1, Parse(" @foo: "));
}

TEST_F(SearchTest, ParseParams) {
TEST_F(SearchParserTest, ParseParams) {
QueryParams params;
params["k"] = "10";
params["name"] = "alex";
Expand Down

0 comments on commit 1f17f56

Please sign in to comment.