Commit b1571050 authored by Nicolas  MAILLET's avatar Nicolas MAILLET
Browse files

Correct typo

parent ac63bbe2
......@@ -78,9 +78,10 @@ class Enzyme:
:param enz_file: location of user file (default: ~/rpg_user.py)
:type enz_file: str
"""
print(self)
if self.rules != []:
# Comment and first line of the Enzyme
ret = "\n\n\n# User defined enzyme " + self.name + "\nENZ = []\n\n"
ret = "\n\n\n# User-defined enzyme " + self.name + "\nENZ = []\n\n"
# Write all the main rules and their su-rules
for i in self.rules:
ret += i.format_rule()
......
......@@ -49,7 +49,7 @@ def test_enzyme(tmpdir):
all_rules = rule.create_rules(dict_rule)
new_enz = enzyme.Enzyme(-1, "fake_enzyme", all_rules)
new_enz.write_enzyme_in_user_file(str(output_file))
assert output_file.read() == '\n\n\n# User defined enzyme fake_enzyme\nENZ = []\n'\
assert output_file.read() == '\n\n\n# User-defined enzyme fake_enzyme\nENZ = []\n'\
'\nE_1 = rule.Rule(0, "E", False, 1) # Never cut '\
'after E, except...\nD_E_1M1 = rule.Rule(-1, "D", '\
'True, -1) # Always cut after E, preceded by D, '\
......
Supports Markdown
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