Skip to content

Commit

Permalink
Test: testing the function fill_in_the_blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKesl committed May 29, 2023
1 parent 6ddd6ea commit c5c644b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arc/common_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,17 @@ def test_is_xyz_mol_match(self):
self.assertFalse(common.is_xyz_mol_match(mol1, xyz2))
self.assertTrue(common.is_xyz_mol_match(mol2, xyz2))

def test_fill_in_the_blanks(self):
"""Test the fill_in_the_blanks() function"""
ex1 = "michalkfir"
ex2 = "michal kfir"
ex3 = "mich al kfir"
ex4 = "michal kfir"
self.assertTrue(common.fill_in_the_blanks(ex1), "michalkfir")
self.assertTrue(common.fill_in_the_blanks(ex2), "michal\\ kfir")
self.assertTrue(common.fill_in_the_blanks(ex3), "mich\\ al\\ kfir")
self.assertTrue(common.fill_in_the_blanks(ex4), "michal\\ \\ kfir")

@classmethod
def tearDownClass(cls):
"""
Expand Down

0 comments on commit c5c644b

Please sign in to comment.