summaryrefslogtreecommitdiffstats
path: root/tests/detect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/detect.rs')
-rw-r--r--tests/detect.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/detect.rs b/tests/detect.rs
index a7641b1..86d1315 100644
--- a/tests/detect.rs
+++ b/tests/detect.rs
@@ -37,7 +37,7 @@ fn first_detection_opens_a_first_introduction_with_no_base() {
assert_eq!(rep.head, commit);
let c = pending(&env, "foo").expect("candidate row");
assert_eq!(c.kind, candidate_kind::FIRST_INTRODUCTION);
- assert_eq!(c.base_release_id, None, "I2 has no referent for a first introduction");
+ assert_eq!(c.base_release_id, None, "nothing was accepted yet, so there is no diff base");
assert_eq!(c.version(), "1.0-1");
let snap = db::snapshot_by_id(&env.db, c.snapshot_id).unwrap().unwrap();
assert_eq!(snap.aur_commit, commit);
@@ -82,7 +82,7 @@ fn recipe_hash_covers_shipped_patches() {
let rep = check_pkgbase(&env.cfg, &env.db, "foo").unwrap();
assert!(
matches!(rep.outcome, Outcome::Notice { ref kind, .. } if kind == notice_kind::RECIPE_DRIFT),
- "recipe drift with an unchanged version is a notice, never a candidate (I11): {:?}",
+ "recipe drift with an unchanged version is a notice, never a candidate: {:?}",
rep.outcome
);
let pb = db::get_pkgbase(&env.db, "foo").unwrap().unwrap();
@@ -108,7 +108,7 @@ fn skip_sources_are_stream_hashed_into_the_cache() {
let c = pending(&env, "foo").unwrap();
let digests = c.digests();
assert_eq!(digests.len(), 1);
- assert_eq!(digests[0].digest, expected, "we hash SKIP sources ourselves (§5.3)");
+ assert_eq!(digests[0].digest, expected, "we hash SKIP sources ourselves");
assert!(digests[0].skip_declared);
assert_eq!(digests[0].kind, "static");
let cached = env.query_i64(
@@ -141,7 +141,7 @@ fn declared_checksums_are_trusted_without_downloading() {
assert_eq!(
env.query_i64("SELECT count(*) FROM source_cache", &[]),
Some(0),
- "declared sums are enforced by makepkg, not re-downloaded (§5.3)"
+ "declared sums are enforced by makepkg, not re-downloaded"
);
}
@@ -166,9 +166,9 @@ fn i2_diff_base_is_the_last_accepted_version_however_many_detections_arrive() {
check_pkgbase(&env.cfg, &env.db, "foo").unwrap();
}
let c = pending(&env, "foo").unwrap();
- assert_eq!(c.id, c2.id, "collapsed in place: no new row (I7)");
+ assert_eq!(c.id, c2.id, "collapsed in place: no new row");
assert_eq!(c.revision, 2, "revision counts the collapsed detections (v3, v4)");
- assert_eq!(c.base_release_id, Some(rel1), "base never moves: the diff is v1 -> v4 (I2)");
+ assert_eq!(c.base_release_id, Some(rel1), "base never moves: the diff is v1 -> v4");
assert_eq!(c.version(), "4.0-1");
assert_eq!(
env.query_i64("SELECT count(*) FROM candidate WHERE state='pending_review'", &[]),
@@ -325,7 +325,7 @@ fn detection_is_idempotent_and_records_no_duplicate_candidate() {
assert_eq!(
env.query_i64("SELECT count(*) FROM candidate", &[]),
Some(1),
- "I3: two byte-identical inputs never produce two candidates"
+ "two byte-identical inputs never produce two candidates"
);
assert_eq!(env.query_i64("SELECT count(*) FROM snapshot", &[]), Some(1));
}