Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lbesnard committed Oct 21, 2024
1 parent 76e6b4d commit ef2e443
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test_lingoanki/test_lingoanki.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import unittest

from lingoanki.__main__ import generate_unique_id


class TestGenerateUniqueId(unittest.TestCase):
def test_generate_unique_id_default_length(self):
# Arrange
input_string = "test_string"
expected_length = 9

# Act
result = generate_unique_id(input_string)

# Assert
self.assertEqual(len(str(result)), expected_length)
self.assertTrue(isinstance(result, int))
self.assertEqual(result, 723598865)


if __name__ == "__main__":
unittest.main()

0 comments on commit ef2e443

Please sign in to comment.