Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Nov 16, 2024
1 parent 9690efc commit 629818e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cargo/core/source_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,16 +843,16 @@ mod tests {
}
#[cfg(windows)]
{
assert_eq!(gen_hash(source_id), 6146331155906064276);
assert_eq!(crate::util::hex::short_hash(&source_id), "946fb2239f274c55");
assert_eq!(gen_hash(source_id), 3283605578538795363);
assert_eq!(crate::util::hex::short_hash(&source_id), "63c14b5be0b5912d");
}

let source_id = SourceId::for_path(path).unwrap();
assert_eq!(gen_hash(source_id), 9618039685442563456);
#[cfg(not(windows))]
snapbox::assert_data_eq!(crate::util::hex::short_hash(&source_id), snapbox::str!("45e51dbeaa3a600a"));
#[cfg(windows)]
assert_eq!(crate::util::hex::short_hash(&source_id), "01e1e6c391813fb6");
assert_eq!(crate::util::hex::short_hash(&source_id), "60c5d1e4599e7adf");

let source_id = SourceId::for_directory(path).unwrap();
#[cfg(not(windows))]
Expand All @@ -862,8 +862,8 @@ mod tests {
}
#[cfg(windows)]
{
assert_eq!(gen_hash(source_id), 10423446877655960172);
assert_eq!(crate::util::hex::short_hash(&source_id), "6c8ad69db585a790");
assert_eq!(gen_hash(source_id), 8115800802579459952);
assert_eq!(crate::util::hex::short_hash(&source_id), "702f94a1d41da170");
}
}

Expand Down

0 comments on commit 629818e

Please sign in to comment.