<commit_before>import unittest
import sys
sys.path.append('../src/') # path to source file (ownfunctions.py)

import ownfunctions  

class TestZeichenErsetzen(unittest.TestCase):

    def test_hallo(self):
        x = ownfunctions.zeichen_ersetzen("hallo")
        self.assertEqual(x,"hallo")
        
    def test_maerchen(self):
        x = ownfunctions.zeichen_ersetzen(u"m{}rchen".format(u"\u00E4"))
        self.assertEqual(x, u"m{}rchen".format(u"\u00E4"))
        
    def test_hyphen_u2013(self):
        x = ownfunctions.zeichen_ersetzen(u"hey {} was geht?".format(u"\u2013"))
        self.assertEqual(x, u"hey - was geht?")
        
    def test_smiley_u263a(self):
        x = ownfunctions.zeichen_ersetzen(u"hallo {}".format(u"\u263a"))
        self.assertEqual(x, u"hallo :-)")
    
    def test_sum_u2211(self):
        x = ownfunctions.zeichen_ersetzen(u"{}(1,2,3,4)".format(u"\u2211"))
        self.assertEqual(x, u"sum(1,2,3,4)")
        
    def test_squareroot_u221a(self):
        x = ownfunctions.zeichen_ersetzen(u"{}(4) = 2".format(u"\u221a"))
        self.assertEqual(x, u"sqrt(4) = 2")

if __name__ == '__main__':
    suite = unittest.TestLoader().loadTestsFromTestCase(TestZeichenErsetzen)
    unittest.TextTestRunner(verbosity=2).run(suite)<commit_msg>more than one test in a testsuite<commit_after>import unittest
import sys
sys.path.append('../src/') # path to source file (ownfunctions.py)

import ownfunctions  

class TestZeichenErsetzen(unittest.TestCase):

    def test_hallo(self):
        x = ownfunctions.zeichen_ersetzen("hallo")
        self.assertEqual(x,"hallo")
        
    def test_maerchen(self):
        x = ownfunctions.zeichen_ersetzen(u"m{}rchen".format(u"\u00E4"))
        self.assertEqual(x, u"m{}rchen".format(u"\u00E4"))
        
    def test_hyphen_u2013(self):
        x = ownfunctions.zeichen_ersetzen(u"hey {} was geht?".format(u"\u2013"))
        self.assertEqual(x, u"hey - was geht?")
        
    def test_smiley_u263a(self):
        x = ownfunctions.zeichen_ersetzen(u"hallo {}".format(u"\u263a"))
        self.assertEqual(x, u"hallo :-)")
    
    def test_sum_u2211(self):
        x = ownfunctions.zeichen_ersetzen(u"{}(1,2,3,4)".format(u"\u2211"))
        self.assertEqual(x, u"sum(1,2,3,4)")
        
    def test_squareroot_u221a(self):
        x = ownfunctions.zeichen_ersetzen(u"{}(4) = 2".format(u"\u221a"))
        self.assertEqual(x, u"sqrt(4) = 2")
        

class TestBla(unittest.TestCase):  # to be removed
    def test_bla(self):
        self.assertEqual(1,1)
        

def create_testsuite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestZeichenErsetzen))
    suite.addTest(unittest.makeSuite(TestBla))
    return suite

if __name__ == '__main__':
    testsuite = create_testsuite()
    unittest.TextTestRunner(verbosity=2).run(testsuite)
{'fraction_non_alphanumeric': 0.15008787346221442, 'fraction_numerical': 0.03374340949033392, 'mean_word_length': 3.3450381679389314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4595951', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1032, 'n_words': 145}