Commit b2a4b1a8 authored by Jean-Benoist Leger's avatar Jean-Benoist Leger

test for duplicated cmd

parent e8520c6d
......@@ -60,6 +60,18 @@ def test_newcommands_consistancy():
a = int(parsed[3][1])
assert a>=0
def test_replicated_command():
datasets = [
datasets.append([parser.parse(nc)[1][1] for nc in data.newcommands])
for i in range(len(datasets)):
for j in range(i + 1, len(datasets)):
s1 = set(datasets[i])
s2 = set(datasets[j])
assert len(s1.intersection(s2)) == 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment