-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from torave/hanne
Hanne - predetic
- Loading branch information
Showing
3 changed files
with
229 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |