Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
andyfengHKU committed Dec 23, 2022
1 parent f87cc4f commit 8d060ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runner/e2e_update_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,15 +302,15 @@ TEST_F(TinySnbUpdateTest, DeleteNodeAfterInsertTest) { // test reset of property
}

TEST_F(TinySnbUpdateTest, MixedDeleteInsertTest) {
auto a = conn->query("CREATE (a:organisation {ID:30, mark:3.3})");
conn->query("CREATE (a:organisation {ID:30, mark:3.3})");
auto result = conn->query("MATCH (a:organisation) WHERE a.ID = 30 RETURN a.orgCode, a.mark");
auto groundTruth = vector<string>{"|3.300000"};
ASSERT_EQ(TestHelper::convertResultToString(*result), groundTruth);
auto b = conn->query("MATCH (a:organisation) WHERE a.ID = 30 DELETE a");
conn->query("MATCH (a:organisation) WHERE a.ID = 30 DELETE a");
result = conn->query("MATCH (a:organisation) WHERE a.ID = 30 RETURN a.orgCode, a.mark");
groundTruth = vector<string>{};
ASSERT_EQ(TestHelper::convertResultToString(*result), groundTruth);
auto c = conn->query("CREATE (a:organisation {ID:30, orgCode:33})");
conn->query("CREATE (a:organisation {ID:30, orgCode:33})");
result = conn->query("MATCH (a:organisation) WHERE a.ID = 30 RETURN a.orgCode, a.mark");
groundTruth = vector<string>{"33|"};
ASSERT_EQ(TestHelper::convertResultToString(*result), groundTruth);
Expand Down

0 comments on commit 8d060ff

Please sign in to comment.