Skip to content

Commit

Permalink
added unittest, type annotation and fixed naming convension
Browse files Browse the repository at this point in the history
  • Loading branch information
OdaiGH committed Nov 1, 2023
1 parent acedcb6 commit 8e17ab5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_soundex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/python
# -*- coding=utf-8 -*-
import unittest
import pyarabic.soundex as soundex

class SoundexTestCase(unittest.TestCase):
"""Tests for `number.py`."""

def test_soundex(self):
self.assertEqual(soundex.soundex("عدي",4),"A300")


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

0 comments on commit 8e17ab5

Please sign in to comment.