Skip to content
Snippets Groups Projects
Commit 5b7c18f9 authored by angloth's avatar angloth
Browse files

Add new test cases for graph id

parent ffe134af
No related branches found
Tags v0.1.0
1 merge request!2Integrated ID system, traversing and som signal tests
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment