From 5b7c18f9afe1c1990a496e02dcbf2320f93b021a Mon Sep 17 00:00:00 2001
From: angloth <angus.lothian@hotmail.com>
Date: Thu, 27 Feb 2020 18:14:03 +0100
Subject: [PATCH] Add new test cases for graph id

---
 test/graph_id/test_graph_id.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/test/graph_id/test_graph_id.py b/test/graph_id/test_graph_id.py
index 9d1d8e5c..fa4fe53b 100644
--- a/test/graph_id/test_graph_id.py
+++ b/test/graph_id/test_graph_id.py
@@ -32,6 +32,22 @@ def test_graph_id_str(graph_ids):
     assert str(graph_ids[6]) == "3"
     assert str(graph_ids[7]) == "ABCDEFGHIJKLMNOPQRSTUVWXYZ4"
 
+def test_graph_id_repr(graph_ids):
+    assert repr(graph_ids[0]) == "add1"
+    assert repr(graph_ids[1]) == "add2"
+    assert repr(graph_ids[2]) == "sig1"
+    assert repr(graph_ids[3]) == "sig1"
+    assert repr(graph_ids[4]) == "sub3"
+    assert repr(graph_ids[5]) == "ÅÄÖ2"
+    assert repr(graph_ids[6]) == "3"
+    assert repr(graph_ids[7]) == "ABCDEFGHIJKLMNOPQRSTUVWXYZ4"
+
+def test_graph_id_eq(graph_ids):
+    assert graph_ids[0] == graph_ids[0]
+    assert graph_ids[0] != graph_ids[1]
+    assert graph_ids[2] == graph_ids[3]
+    assert graph_ids[0] != graph_ids[2]
+    assert graph_ids[4] != graph_ids[6] 
 
 
 
-- 
GitLab