This commit is contained in:
Barak Michener 2014-09-01 14:23:05 -04:00
parent 2bceb9c25f
commit 37bf954db6

View file

@ -38,6 +38,8 @@ var simpleGraph = []quad.Quad{
{"B", "status", "cool", "status_graph"},
{"D", "status", "cool", "status_graph"},
{"G", "status", "cool", "status_graph"},
{"predicates", "are", "follows", ""},
{"predicates", "are", "status", ""},
}
func makeTestStore(data []quad.Quad) graph.QuadStore {
@ -78,6 +80,11 @@ func testSet(qs graph.QuadStore) []test {
path: V(qs, "B").In("follows"),
expect: []string{"A", "C", "D"},
},
{
message: "use path Out",
path: V(qs, "B").Out(V(qs, "predicates").Out("are")),
expect: []string{"F", "cool"},
},
}
}