From 37bf954db660ae94dc3f7c9aec1b204f99e47840 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Mon, 1 Sep 2014 14:23:05 -0400 Subject: [PATCH] test via --- graph/api/api_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/graph/api/api_test.go b/graph/api/api_test.go index fa2c407..8ec7699 100644 --- a/graph/api/api_test.go +++ b/graph/api/api_test.go @@ -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"}, + }, } }