Skip to content

Commit

Permalink
Update test following pubgrub-rs#163 (#15)
Browse files Browse the repository at this point in the history
* Update test following pubgrub-rs#163

* Fix compiler warning

---------

Co-authored-by: konstin <konstin@mailbox.org>
  • Loading branch information
zanieb and konstin committed Dec 21, 2023
1 parent f64c499 commit f297ef0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ fn confusing_with_lots_of_holes() {
};
assert_eq!(
&DefaultStringReporter::report(&derivation_tree),
r#"Because there is no available version for bar and foo 1 | 2 | 3 | 4 | 5 depends on bar, foo 1 | 2 | 3 | 4 | 5 is forbidden.
And because there is no version of foo in <1 | >1, <2 | >2, <3 | >3, <4 | >4, <5 | >5 and root 1 depends on foo, root 1 is forbidden."#
r#"Because there is no available version for bar and foo ==1 | ==2 | ==3 | ==4 | ==5 depends on bar, foo ==1 | ==2 | ==3 | ==4 | ==5 is forbidden.
And because there is no version of foo in <1 | >1, <2 | >2, <3 | >3, <4 | >4, <5 | >5 and root ==1 depends on foo, root ==1 is forbidden."#
);
derivation_tree.collapse_no_versions();
assert_eq!(
&DefaultStringReporter::report(&derivation_tree),
"Because foo depends on bar and root 1 depends on foo, root 1 is forbidden."
"Because foo depends on bar and root ==1 depends on foo, root ==1 is forbidden."
);
}
2 changes: 1 addition & 1 deletion tests/proptest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ fn large_case() {
let mut sat = SatResolve::new(&dependency_provider);
for p in dependency_provider.packages() {
for v in dependency_provider.versions(p).unwrap() {
let res = resolve(&dependency_provider, p.clone(), v);
let res = resolve(&dependency_provider, *p, v);
sat.check_resolve(&res, p, v);
}
}
Expand Down

0 comments on commit f297ef0

Please sign in to comment.