# HG changeset patch # User Georges Racinet # Date 1688636606 -7200 # Node ID 3338c6ffdaa3ae25470bd9923f6bdccf0f3b6327 # Parent bca4037306da06a4e490e9841292f4d9e835aacc rust-revlog: using constant in test Always better diff -r bca4037306da -r 3338c6ffdaa3 rust/hg-core/src/revlog/mod.rs --- 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]