Mercurial > hg-stable
changeset 50742:3338c6ffdaa3 stable
rust-revlog: using constant in test
Always better
author | Georges Racinet <georges.racinet@octobus.net> |
---|---|
date | Thu, 06 Jul 2023 11:43:26 +0200 |
parents | bca4037306da |
children | 124c44b5cfad |
files | rust/hg-core/src/revlog/mod.rs |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/mod.rs Thu Mar 30 11:34:30 2023 +0200 +++ b/rust/hg-core/src/revlog/mod.rs Thu Jul 06 11:43:26 2023 +0200 @@ -684,7 +684,10 @@ assert_eq!(revlog.len(), 0); assert!(revlog.get_entry(0).is_err()); assert!(!revlog.has_rev(0)); - assert_eq!(revlog.rev_from_node(NULL_NODE.into()).unwrap(), -1); + assert_eq!( + revlog.rev_from_node(NULL_NODE.into()).unwrap(), + NULL_REVISION + ); } #[test]