<commit_before>#!/usr/bin/python3
import unittest
from dsStr import minusstr, fill, ellipsize

class dsStrTests(unittest.TestCase):
    def test_subtracting_empty_strings_should_yield_empty_string(self):
        self.assertEqual('', minusstr('', ''))

if __name__ == '__main__':
    unittest.main()<commit_msg>Added more tests against dsStr.minusstr function<commit_after>#!/usr/bin/python3
import unittest
from dsStr import minusstr, fill, ellipsize

class dsStrTests(unittest.TestCase):
    def test_subtract_empty_strings_should_yield_empty_string(self):
        self.assertEqual('', minusstr('', ''))

    def test_subtract_empty_string_from_asdf_should_yield_asdf(self):
        self.assertEqual('asdf', minusstr('asdf', ''))

    def test_subtract_bar_from_foobar_should_yield_foo(self):
        self.assertEqual('foo', minusstr('foobar', 'bar'))

    def test_subtract_string_from_itself_should_yield_empty_string(self):
        self.assertEqual('', minusstr('foo', 'foo'))

    def test_subtract_baz_from_foobar_should_raise_exception(self):
        self.assertRaises(ValueError, lambda: minusstr('foobar', 'baz'))

if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.11965811965811966, 'fraction_numerical': 0.0017094017094017094, 'mean_word_length': 5.808139534883721, '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': '7005730', 'n_tokens_mistral': 402, 'n_tokens_neox': 371, 'n_words': 62}