diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-06-22 00:19:08 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-06-22 00:38:08 -0400 |
commit | 2c3db4e1ed46059736440e494fe400dcb2f50e9f (patch) | |
tree | a6dc6b035b909a0efc8662d1a4c2a1b9d2921ce7 /test/test.scala | |
parent | 422e993664a76e42268eaecfdad623a92d34777a (diff) | |
download | cbt-2c3db4e1ed46059736440e494fe400dcb2f50e9f.tar.gz cbt-2c3db4e1ed46059736440e494fe400dcb2f50e9f.tar.bz2 cbt-2c3db4e1ed46059736440e494fe400dcb2f50e9f.zip |
add basic support for maven version ranges
Diffstat (limited to 'test/test.scala')
-rw-r--r-- | test/test.scala | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala index 55ce205..9cb7fd9 100644 --- a/test/test.scala +++ b/test/test.scala @@ -242,6 +242,35 @@ object Main{ ScaffoldTest.main(Array()) + Seq( + "1.0" -> "1.0", + "1.0-M1" -> "1.0-M1", + "1.0.0" -> "1.0.0", + "[1.0.0]" -> "1.0.0", + "[1.0.0)" -> "1.0.0", + "(1.0.0]" -> "1.0.0", + "(1.0.0)" -> "1.0.0", + "(,1.0.0]" -> "1.0.0", + "[,1.0.0]" -> "1.0.0", + "[,1.0.0)" -> "1.0.0", + "(,1.0.0)" -> "1.0.0", + "(1.0.0,]" -> "1.0.0", + "[1.0.0,]" -> "1.0.0", + "[1.0.0,)" -> "1.0.0", + "(1.0.0,)" -> "1.0.0", + "(1.0.0,1.0.1]" -> "1.0.0", + "[1.0.0,1.0.1]" -> "1.0.0", + "[1.0.0,1.0.1)" -> "1.0.0", + "(1.0.0,1.0.1)" -> "1.0.0" + ).foreach{ + case (input, expected) => + val actual = BoundMavenDependency.extractVersion(input) + assert( + expected === actual, + s"for $input expected $expected got $actual" + ) + } + usage("nothing") compile("nothing") //clean("nothing") |