Updated regex test for atom_subsets

This commit is contained in:
Sebastian Kloth 2023-12-26 16:05:42 +01:00
parent cc185546d6
commit cedfd24bb3

View File

@ -2,6 +2,7 @@ from mdevaluate import atoms
def test_compare_regex(): def test_compare_regex():
assert atoms.compare_regex(['OW', ], 'O')[0] == False assert atoms.compare_regex(['OW', ], 'O')[0]
assert atoms.compare_regex(['WO', ], 'O')[0] == False assert not atoms.compare_regex(['OW', ], 'O$')[0]
assert atoms.compare_regex(['O', ], 'O')[0] == True assert not atoms.compare_regex(['WO', ], 'O')[0]
assert atoms.compare_regex(['O', ], 'O')[0]