Skip to content

Commit

Permalink
test check letters
Browse files Browse the repository at this point in the history
  • Loading branch information
hannhegg committed Apr 8, 2025
1 parent 100dae4 commit ad9ec94
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/test_nordic_cityname.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import unittest

from src.my_package.util import replace_nordic

#test one city for every letter "æøå" to see that they all work
class TestReplaceNordic(unittest.TestCase):
def test_replace_nordic(self):
self.assertEqual(replace_nordic("Bærum"), "Baerum")
self.assertEqual(replace_nordic("Bø"), "Bo")
self.assertEqual(replace_nordic("Snåsa"), "Snaasa")

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

0 comments on commit ad9ec94

Please sign in to comment.