chempy icon indicating copy to clipboard operation
chempy copied to clipboard

Parsing oddities

Open bjodah opened this issue 7 years ago • 0 comments

Parsing of strings silently accept some insane strings. Instead, it should raise an error. Examples:

>>> from chempy import ReactionSystem as RS
>>> RS.from_string("CO -> O + C ->").string()  # should raise!
'CO -> C + O\n'
>>> RS.from_string("COqasza -> Oqasd + Cqagdsfxxds").string()  # should raise!
'COqasza -> Cqagdsfxxds + Oqasd\n'

bjodah avatar Feb 22 '17 22:02 bjodah