[19/50] tinkerpop git commit: TINKERPOP-1784 Added dedup() feature tests

2017-11-22 Thread spmallette
TINKERPOP-1784 Added dedup() feature tests

Reworked test language for asserting counts so that it works better as a 
standalone assertion.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/a5d99774
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/a5d99774
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/a5d99774

Branch: refs/heads/tp32
Commit: a5d99774e2f6b8dbe312062e99380b5a80873816
Parents: a9af53f
Author: Stephen Mallette 
Authored: Tue Oct 24 11:37:18 2017 -0400
Committer: Stephen Mallette 
Committed: Tue Nov 21 15:52:52 2017 -0500

--
 .../src/main/jython/radish/feature_steps.py |   2 +-
 gremlin-test/features/branch/Local.feature  |  12 +-
 gremlin-test/features/branch/Repeat.feature |   2 +-
 gremlin-test/features/filter/Dedup.feature  | 222 +++
 4 files changed, 230 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a5d99774/gremlin-python/src/main/jython/radish/feature_steps.py
--
diff --git a/gremlin-python/src/main/jython/radish/feature_steps.py 
b/gremlin-python/src/main/jython/radish/feature_steps.py
index 2d2ae8d..14a0153 100644
--- a/gremlin-python/src/main/jython/radish/feature_steps.py
+++ b/gremlin-python/src/main/jython/radish/feature_steps.py
@@ -112,7 +112,7 @@ def assert_side_effects(step, count, traversal_string):
 assert_that(count, equal_to(t.count().next()))
 
 
-@then("only have a result count of {count:d}")
+@then("should have a result count of {count:d}")
 def assert_count(step, count):
 assert_that(count, equal_to(len(step.context.result)))
 

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a5d99774/gremlin-test/features/branch/Local.feature
--
diff --git a/gremlin-test/features/branch/Local.feature 
b/gremlin-test/features/branch/Local.feature
index 53ae3ab..fa12d8c 100644
--- a/gremlin-test/features/branch/Local.feature
+++ b/gremlin-test/features/branch/Local.feature
@@ -73,7 +73,7 @@ Feature: Step - local()
 Then the result should be of
   | vadas |
   | josh  |
-And only have a result count of 1
+And should have a result count of 1
 
   Scenario: g_V_localXbothEXcreatedX_limitX1XX_otherV_name
 Given the modern graph
@@ -88,7 +88,7 @@ Feature: Step - local()
   | ripple |
   | josh   |
   | peter  |
-And only have a result count of 5
+And should have a result count of 5
 
   Scenario: g_VX4X_localXbothEX1_createdX_limitX1XX
 Given the modern graph
@@ -101,7 +101,7 @@ Feature: Step - local()
 Then the result should be of
   | e[josh-created->lop]|
   | e[josh-created->ripple] |
-And only have a result count of 1
+And should have a result count of 1
 
   Scenario: g_VX4X_localXbothEXknows_createdX_limitX1XX
 Given the modern graph
@@ -115,7 +115,7 @@ Feature: Step - local()
   | e[marko-knows->josh]|
   | e[josh-created->lop]|
   | e[josh-created->ripple] |
-And only have a result count of 1
+And should have a result count of 1
 
   Scenario: g_VX4X_localXbothE_limitX1XX_otherV_name
 Given the modern graph
@@ -129,7 +129,7 @@ Feature: Step - local()
   | marko  |
   | ripple |
   | lop|
-And only have a result count of 1
+And should have a result count of 1
 
   Scenario: g_VX4X_localXbothE_limitX2XX_otherV_name
 Given the modern graph
@@ -143,7 +143,7 @@ Feature: Step - local()
   | marko  |
   | ripple |
   | lop|
-And only have a result count of 2
+And should have a result count of 2
 
   Scenario: g_V_localXinEXknowsX_limitX2XX_outV_name
 Given the modern graph

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a5d99774/gremlin-test/features/branch/Repeat.feature
--
diff --git a/gremlin-test/features/branch/Repeat.feature 
b/gremlin-test/features/branch/Repeat.feature
index e6049b5..6d97fc0 100644
--- a/gremlin-test/features/branch/Repeat.feature
+++ b/gremlin-test/features/branch/Repeat.feature
@@ -68,7 +68,7 @@ Feature: Step - repeat()
   | v[lop] |
   | v[josh] |
   | v[vadas] |
-And only have a result count of 8
+And should have a result count of 8
 
   Scenario: g_VX1X_timesX2X_repeatXoutX_name
 Given the modern graph

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a5d99774/gremlin-test/features/filter/Dedup.feature
--
diff --git a/gremlin-test/features/filter/Dedup.feature 
b/gremlin-test/features/filter/Dedup.feature
new file mode 100644
index 

[19/50] tinkerpop git commit: TINKERPOP-1784 Added dedup() feature tests

2017-11-22 Thread spmallette
TINKERPOP-1784 Added dedup() feature tests

Reworked test language for asserting counts so that it works better as a 
standalone assertion.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/a5d99774
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/a5d99774
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/a5d99774

Branch: refs/heads/master
Commit: a5d99774e2f6b8dbe312062e99380b5a80873816
Parents: a9af53f
Author: Stephen Mallette 
Authored: Tue Oct 24 11:37:18 2017 -0400
Committer: Stephen Mallette 
Committed: Tue Nov 21 15:52:52 2017 -0500

--
 .../src/main/jython/radish/feature_steps.py |   2 +-
 gremlin-test/features/branch/Local.feature  |  12 +-
 gremlin-test/features/branch/Repeat.feature |   2 +-
 gremlin-test/features/filter/Dedup.feature  | 222 +++
 4 files changed, 230 insertions(+), 8 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a5d99774/gremlin-python/src/main/jython/radish/feature_steps.py
--
diff --git a/gremlin-python/src/main/jython/radish/feature_steps.py 
b/gremlin-python/src/main/jython/radish/feature_steps.py
index 2d2ae8d..14a0153 100644
--- a/gremlin-python/src/main/jython/radish/feature_steps.py
+++ b/gremlin-python/src/main/jython/radish/feature_steps.py
@@ -112,7 +112,7 @@ def assert_side_effects(step, count, traversal_string):
 assert_that(count, equal_to(t.count().next()))
 
 
-@then("only have a result count of {count:d}")
+@then("should have a result count of {count:d}")
 def assert_count(step, count):
 assert_that(count, equal_to(len(step.context.result)))
 

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a5d99774/gremlin-test/features/branch/Local.feature
--
diff --git a/gremlin-test/features/branch/Local.feature 
b/gremlin-test/features/branch/Local.feature
index 53ae3ab..fa12d8c 100644
--- a/gremlin-test/features/branch/Local.feature
+++ b/gremlin-test/features/branch/Local.feature
@@ -73,7 +73,7 @@ Feature: Step - local()
 Then the result should be of
   | vadas |
   | josh  |
-And only have a result count of 1
+And should have a result count of 1
 
   Scenario: g_V_localXbothEXcreatedX_limitX1XX_otherV_name
 Given the modern graph
@@ -88,7 +88,7 @@ Feature: Step - local()
   | ripple |
   | josh   |
   | peter  |
-And only have a result count of 5
+And should have a result count of 5
 
   Scenario: g_VX4X_localXbothEX1_createdX_limitX1XX
 Given the modern graph
@@ -101,7 +101,7 @@ Feature: Step - local()
 Then the result should be of
   | e[josh-created->lop]|
   | e[josh-created->ripple] |
-And only have a result count of 1
+And should have a result count of 1
 
   Scenario: g_VX4X_localXbothEXknows_createdX_limitX1XX
 Given the modern graph
@@ -115,7 +115,7 @@ Feature: Step - local()
   | e[marko-knows->josh]|
   | e[josh-created->lop]|
   | e[josh-created->ripple] |
-And only have a result count of 1
+And should have a result count of 1
 
   Scenario: g_VX4X_localXbothE_limitX1XX_otherV_name
 Given the modern graph
@@ -129,7 +129,7 @@ Feature: Step - local()
   | marko  |
   | ripple |
   | lop|
-And only have a result count of 1
+And should have a result count of 1
 
   Scenario: g_VX4X_localXbothE_limitX2XX_otherV_name
 Given the modern graph
@@ -143,7 +143,7 @@ Feature: Step - local()
   | marko  |
   | ripple |
   | lop|
-And only have a result count of 2
+And should have a result count of 2
 
   Scenario: g_V_localXinEXknowsX_limitX2XX_outV_name
 Given the modern graph

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a5d99774/gremlin-test/features/branch/Repeat.feature
--
diff --git a/gremlin-test/features/branch/Repeat.feature 
b/gremlin-test/features/branch/Repeat.feature
index e6049b5..6d97fc0 100644
--- a/gremlin-test/features/branch/Repeat.feature
+++ b/gremlin-test/features/branch/Repeat.feature
@@ -68,7 +68,7 @@ Feature: Step - repeat()
   | v[lop] |
   | v[josh] |
   | v[vadas] |
-And only have a result count of 8
+And should have a result count of 8
 
   Scenario: g_VX1X_timesX2X_repeatXoutX_name
 Given the modern graph

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a5d99774/gremlin-test/features/filter/Dedup.feature
--
diff --git a/gremlin-test/features/filter/Dedup.feature 
b/gremlin-test/features/filter/Dedup.feature
new file mode 100644