Skip to content

Commit

Permalink
+1 noun: added "oryx" in honor of oryxspioenkop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderlukanin13 committed Dec 7, 2022
1 parent 28d3053 commit 5bd2611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions coolname/data/animal.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ markhor
mouflon
muskox
nyala
oryx
sheep
wildebeest
yak
Expand Down
4 changes: 2 additions & 2 deletions tests/test_coolname.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,14 +456,14 @@ def test_random_default(self):
# 1. Re-seed default generator
random.seed(123)
self.assertEqual(random.random(), 0.052363598850944326)
self.assertEqual(coolname.generate_slug(), 'hypersonic-goat-of-sheer-downpour')
self.assertEqual(coolname.generate_slug(), 'accelerated-frog-of-enjoyable-abracadabra')

# 2. Replace default generator
rand = random.Random()
rand.seed(456)
self.assertEqual(rand.random(), 0.7482025358782363)
coolname.replace_random(rand)
self.assertEqual(coolname.generate_slug(), 'groovy-cerise-rooster-of-opportunity')
self.assertEqual(coolname.generate_slug(), 'glorious-rose-mouflon-of-opportunity')

# 3. Custom generator with custom Random
config = {
Expand Down

0 comments on commit 5bd2611

Please sign in to comment.