Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing oddities #50

Open
bjodah opened this issue Feb 22, 2017 · 0 comments
Open

Parsing oddities #50

bjodah opened this issue Feb 22, 2017 · 0 comments

Comments

@bjodah
Copy link
Owner

bjodah commented Feb 22, 2017

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant