From dd93d5121c8604b060ae48399f6176eada2563d9 Mon Sep 17 00:00:00 2001 From: jimingquan Date: Thu, 13 Jan 2022 14:52:00 +0800 Subject: [PATCH] add test case --- tests/tck/features/match/SeekById.feature | 22 +++++++++++++++++++ .../features/match/SeekById.intVid.feature | 10 +++++++++ 2 files changed, 32 insertions(+) diff --git a/tests/tck/features/match/SeekById.feature b/tests/tck/features/match/SeekById.feature index 03c1061f705..23121d7e20a 100644 --- a/tests/tck/features/match/SeekById.feature +++ b/tests/tck/features/match/SeekById.feature @@ -317,6 +317,28 @@ Feature: Match seek by id """ Then the result should be, in any order: | v | + When executing query: + """ + MATCH (v:player) + WHERE "Tim Duncan" == v.player.name + OR 23 + 1 == v.noexist.age - 3 + RETURN v + """ + Then the result should be, in any order: + | v | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + When executing query: + """ + MATCH (v:player)-[e:like]->(t) + WHERE "Tim Duncan" == v.player.name + OR 25 - 2 == v.player.age + RETURN t + """ + Then the result should be, in any order: + | t | + | ("Tony Parker" :player{age: 36, name: "Tony Parker"}) | + | ("Luka Doncic" :player{age: 20, name: "Luka Doncic"}) | + | ("Manu Ginobili" :player{age: 41, name: "Manu Ginobili"}) | Scenario: Start from end When executing query: diff --git a/tests/tck/features/match/SeekById.intVid.feature b/tests/tck/features/match/SeekById.intVid.feature index 6a3988c9c08..f57b654c004 100644 --- a/tests/tck/features/match/SeekById.intVid.feature +++ b/tests/tck/features/match/SeekById.intVid.feature @@ -310,6 +310,16 @@ Feature: Match seek by id """ Then the result should be, in any order: | v | + When executing query: + """ + MATCH (v:player) + WHERE "Tim Duncan" == v.player.name + OR 23 + 1 == v.noexist.age - 3 + RETURN v.name as name + """ + Then the result should be, in any order: + | name | + | "Tim Duncan" | Scenario: with arithmetic When executing query: