mdevaluate/test/test_atoms.py

9 lines
261 B
Python
Raw Normal View History

2022-04-20 14:08:38 +02:00
from mdevaluate import atoms
def test_compare_regex():
2023-12-26 16:05:42 +01:00
assert atoms.compare_regex(['OW', ], 'O')[0]
assert not atoms.compare_regex(['OW', ], 'O$')[0]
assert not atoms.compare_regex(['WO', ], 'O')[0]
assert atoms.compare_regex(['O', ], 'O')[0]