test via
This commit is contained in:
parent
2bceb9c25f
commit
37bf954db6
1 changed files with 7 additions and 0 deletions
|
|
@ -38,6 +38,8 @@ var simpleGraph = []quad.Quad{
|
||||||
{"B", "status", "cool", "status_graph"},
|
{"B", "status", "cool", "status_graph"},
|
||||||
{"D", "status", "cool", "status_graph"},
|
{"D", "status", "cool", "status_graph"},
|
||||||
{"G", "status", "cool", "status_graph"},
|
{"G", "status", "cool", "status_graph"},
|
||||||
|
{"predicates", "are", "follows", ""},
|
||||||
|
{"predicates", "are", "status", ""},
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeTestStore(data []quad.Quad) graph.QuadStore {
|
func makeTestStore(data []quad.Quad) graph.QuadStore {
|
||||||
|
|
@ -78,6 +80,11 @@ func testSet(qs graph.QuadStore) []test {
|
||||||
path: V(qs, "B").In("follows"),
|
path: V(qs, "B").In("follows"),
|
||||||
expect: []string{"A", "C", "D"},
|
expect: []string{"A", "C", "D"},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
message: "use path Out",
|
||||||
|
path: V(qs, "B").Out(V(qs, "predicates").Out("are")),
|
||||||
|
expect: []string{"F", "cool"},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue