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 Aug 10, 2022
1 parent 1332fa6 commit 9f0dd98
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arc/commonTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,17 @@ def test_almost_equal_coords(self):
self.assertTrue(common.almost_equal_coords(ch4_a, ch4_c))
self.assertFalse(common.almost_equal_coords(ch4_a, ch4_d))

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 9f0dd98

Please sign in to comment.