From cedfd24bb33e0d1623fd139b68681fd1f6dbcedc Mon Sep 17 00:00:00 2001 From: Sebastian Kloth Date: Tue, 26 Dec 2023 16:05:42 +0100 Subject: [PATCH] Updated regex test for atom_subsets --- test/test_atoms.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_atoms.py b/test/test_atoms.py index 498e926..ec7821f 100644 --- a/test/test_atoms.py +++ b/test/test_atoms.py @@ -2,6 +2,7 @@ from mdevaluate import atoms def test_compare_regex(): - assert atoms.compare_regex(['OW', ], 'O')[0] == False - assert atoms.compare_regex(['WO', ], 'O')[0] == False - assert atoms.compare_regex(['O', ], 'O')[0] == True + 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]