Skip to content

Commit 4b30fab

Browse files
committed
Add more test and fix a typo in function docs
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
1 parent e6131ff commit 4b30fab

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/univers/gentoo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def vercmp(ver1, ver2):
185185

186186
def bump(ver):
187187
"""
188-
Return a new version object where the next to the last revision number
188+
Return a new version where the next to the last revision number
189189
is one greater (e.g., 5.3.1 => 5.4) i.e., incrementing this GentooVersion
190190
last numeric segment.
191191
"""

tests/test_gentoo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ def test_gentoo_bump():
3737
assert GentooVersion("2.23.3").bump() == "2.24"
3838
assert GentooVersion("2.24.3").bump() == "2.25"
3939
assert GentooVersion("2.25.4").bump() == "2.26"
40-
assert GentooVersion("2.26.2").bump() == "2.27"
40+
assert GentooVersion("1.3.8b").bump() == "1.4"
41+
assert GentooVersion("9.9_p2").bump() == "10"
42+
assert GentooVersion("0.13.4-r2").bump() == "0.14"

0 commit comments

Comments
 (0)