aboutsummaryrefslogtreecommitdiffstats
path: root/test/rlx_depsolver_tester.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-07-07 20:50:45 -0500
committerTristan Sloughter <[email protected]>2014-07-09 12:24:46 -0500
commit11b4775c6610bd8f1c00d45e0766423301927b45 (patch)
treeaada3fbf4f2d5b000876dfd0d374ac3b0d8e0782 /test/rlx_depsolver_tester.erl
parent13a76fa25a67cc6d9e3a1192d5acc90d36a81585 (diff)
downloadrelx-11b4775c6610bd8f1c00d45e0766423301927b45.tar.gz
relx-11b4775c6610bd8f1c00d45e0766423301927b45.tar.bz2
relx-11b4775c6610bd8f1c00d45e0766423301927b45.zip
sort apps by version, so newest is chosen if it passes constraints
Diffstat (limited to 'test/rlx_depsolver_tester.erl')
-rw-r--r--test/rlx_depsolver_tester.erl20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/rlx_depsolver_tester.erl b/test/rlx_depsolver_tester.erl
index b441a1e..9b55603 100644
--- a/test/rlx_depsolver_tester.erl
+++ b/test/rlx_depsolver_tester.erl
@@ -61,12 +61,12 @@ data1_test() ->
data2_test() ->
ExpectedResult = versionify([{"app18","0.0.1"},
- {"app4","0.0.1"},
+ {"app4","0.0.7"},
{"app1","0.0.1"},
{"app6","0.0.1"},
{"dep_pkg13","0.0.2"},
{"app13","0.0.1"},
- {"dep_pkg5","0.0.2"},
+ {"dep_pkg5","0.0.3"},
{"dep_pkg1","0.0.2"},
{"dep_pkg2","0.0.5"},
{"dep_pkg7","0.1.2"},
@@ -82,12 +82,12 @@ data3_test() ->
{"app38","0.0.1"},
{"app28","0.0.1"},
{"app18","0.0.1"},
- {"app4","0.0.1"},
+ {"app4","0.0.7"},
{"app1","0.0.1"},
{"app6","0.0.1"},
{"dep_pkg13","0.0.2"},
{"app13","0.0.1"},
- {"dep_pkg5","0.0.2"},
+ {"dep_pkg5","0.0.3"},
{"dep_pkg1","0.0.2"},
{"dep_pkg2","0.0.5"},
{"dep_pkg7","0.1.2"},
@@ -104,12 +104,12 @@ data4_test() ->
{"app38","0.0.1"},
{"app28","0.0.1"},
{"app18","0.0.1"},
- {"app4","0.0.1"},
+ {"app4","0.0.7"},
{"app1","0.0.1"},
{"app6","0.0.1"},
{"dep_pkg13","0.0.2"},
{"app13","0.0.1"},
- {"dep_pkg5","0.0.2"},
+ {"dep_pkg5","0.0.3"},
{"dep_pkg1","0.0.2"},
{"dep_pkg2","0.0.5"},
{"dep_pkg7","0.1.2"},
@@ -129,12 +129,12 @@ data5_test() ->
{"app38","0.0.1"},
{"app28","0.0.1"},
{"app18","0.0.1"},
- {"app4","0.0.1"},
+ {"app4","0.0.7"},
{"app1","0.0.1"},
{"app6","0.0.1"},
{"dep_pkg13","0.0.2"},
{"app13","0.0.1"},
- {"dep_pkg5","0.0.2"},
+ {"dep_pkg5","0.0.3"},
{"dep_pkg1","0.0.2"},
{"dep_pkg2","0.0.5"},
{"dep_pkg7","0.1.2"},
@@ -157,12 +157,12 @@ data6_test() ->
{"app38","0.0.1"},
{"app28","0.0.1"},
{"app18","0.0.1"},
- {"app4","0.0.1"},
+ {"app4","0.0.7"},
{"app1","0.0.1"},
{"app6","0.0.1"},
{"dep_pkg13","0.0.2"},
{"app13","0.0.1"},
- {"dep_pkg5","0.0.2"},
+ {"dep_pkg5","0.0.3"},
{"dep_pkg1","0.0.2"},
{"dep_pkg2","0.0.5"},
{"dep_pkg7","0.1.2"},