Created
July 14, 2017 20:19
-
-
Save kevingessner/ce8981aecb64dd2885d19e4a35fa366a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/scala/com/github/johnynek/bazel_deps/NormalizerTest.scala b/test/scala/com/github/johnynek/bazel_deps/NormalizerTest.scala | |
index c8fe497..cc1e42a 100644 | |
--- a/test/scala/com/github/johnynek/bazel_deps/NormalizerTest.scala | |
+++ b/test/scala/com/github/johnynek/bazel_deps/NormalizerTest.scala | |
@@ -21,6 +21,7 @@ class NormalizerTest extends FunSuite { | |
val bird1 = "a:bird:1.0" | |
val bird2 = "a:bird:2.0" | |
val seed1 = "a:seed:1.0" | |
+ val dog1 = "a:dog:1.0" | |
/** | |
* a:cat:1.0 -> a:bird:1.0 | |
* a:snake:1.0 -> a:bird:2.0 | |
@@ -36,13 +37,15 @@ class NormalizerTest extends FunSuite { | |
.add(snake1, bird2) | |
.add(bird1, "a:worm:1.0") | |
.add(bird2, seed1) | |
+ .addNode(MavenCoordinate(dog1)) | |
- Normalizer(finalG, Set(cat1, snake1).map(MavenCoordinate(_)), VersionConflictPolicy.default) match { | |
+ Normalizer(finalG, Set(cat1, snake1, dog1).map(MavenCoordinate(_)), VersionConflictPolicy.default) match { | |
case Some(normalG) => | |
val expected = g | |
.add(cat1, bird2) | |
.add(snake1, bird2) | |
.add(bird2, seed1) | |
+ .addNode(MavenCoordinate(dog1)) | |
assert(normalG === expected) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment