diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-04 15:52:13 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-04 15:52:13 +0300 |
commit | b5b66e6a831cf68b7da764235f669fad758491fb (patch) | |
tree | 7778767e088ba47ba48c2c17e43e79709fef1012 /tests | |
parent | 0cbdc0afe4ef27417e654fd1409f644c5bd01ca4 (diff) |
Change standard version epoch syntax from '<num>~' to '+<num>-'
Diffstat (limited to 'tests')
-rw-r--r-- | tests/standard-version/testscript | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/standard-version/testscript b/tests/standard-version/testscript index ebc24d5..f06b178 100644 --- a/tests/standard-version/testscript +++ b/tests/standard-version/testscript @@ -51,7 +51,7 @@ : epoch : $* <<EOF >>EOF - 4~1.2.3 + +4-1.2.3 EOF : stub @@ -71,6 +71,10 @@ : invalid : { + : epoch + : + $* <'+1+' 2>"'-' expected after epoch" == 1 + : major : $* <'a' 2>'invalid major version' == 1 @@ -93,7 +97,7 @@ : zero-version : - $* <'1~0.0.0' 2>'0.0.0 version' == 1 + $* <'+1-0.0.0' 2>'0.0.0 version' == 1 : a-b-expected : @@ -190,8 +194,8 @@ : epoch : { - $* '4~1.2.3' '4~1.2.3' >'0' : equal - $* '1.2.4' '4~1.2.3' >'-1': less + $* '+4-1.2.3' '+4-1.2.3' >'0' : equal + $* '1.2.4' '+4-1.2.3' >'-1': less } : non-prerelease |