rename attribute to property
This commit is contained in:
@@ -13,15 +13,15 @@ def test_dispersion(user_keypad):
|
||||
pre_dispersion_graph = user_keypad.property_adjacency_graph()
|
||||
user_keypad.disperse_keypad()
|
||||
post_dispersion_graph = user_keypad.property_adjacency_graph()
|
||||
for attr, adj_graph in pre_dispersion_graph.items():
|
||||
assert (adj_graph.isdisjoint(post_dispersion_graph[attr]))
|
||||
for prop, adj_graph in pre_dispersion_graph.items():
|
||||
assert (adj_graph.isdisjoint(post_dispersion_graph[prop]))
|
||||
|
||||
|
||||
#def test_shuffle_attrs(user_keypad):
|
||||
#def test_shuffle_props(user_keypad):
|
||||
# """there's no easy way to test this. At some point we'll have to run this code thousands of time to see if we get
|
||||
# expected statistical outcomes like:
|
||||
# - every attribute gets to every key with a uniform distribution
|
||||
# - every attribute is adjacent to every other attribute with uniform distribution
|
||||
# - every property gets to every key with a uniform distribution
|
||||
# - every property is adjacent to every other property with uniform distribution
|
||||
# - the order in which the cipher move from key to key is random (i.e. the distance traveled is uniform)
|
||||
# """
|
||||
# pre_shuffle_keypad = user_keypad.keypad
|
||||
|
||||
Reference in New Issue
Block a user