Skip to content

Commit

Permalink
Added additional tests for increase prerelease and increase build
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebi2020 committed Mar 10, 2019
1 parent 5a709d4 commit f59f305
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ def test_inc_patch(self):
s.incPatch();
self.assertEqual(str(s), "0.1.2");

def test_inc_build(self):
a = cs.parse("0.2.2+build0")
b = cs.parse("0.2.2+build1")
a.incBuild()
self.assertEqual(a,b)

def test_inc_pre(self):
a = cs.parse("0.1.0-rc0")
b = cs.parse("0.1.0-rc1")
a.incPrerelease()
self.assertEqual(a,b)

def test_number_descriptor(self):
s = cs.parse("1.2.3-pre+build");
self.assertEqual(s.number, "1.2.3-pre+build");
Expand Down

0 comments on commit f59f305

Please sign in to comment.