Apply suggestions from code review
Co-authored-by: str4d <jack@electriccoin.co>
This commit is contained in:
parent
cc9dbf8bde
commit
231aa5d01a
|
@ -175,7 +175,7 @@ pub mod testing {
|
|||
];
|
||||
|
||||
prop_compose! {
|
||||
pub fn arb_outpoint()(hash in prop::array::uniform32(1u8..), n in 1..100u32) -> OutPoint {
|
||||
pub fn arb_outpoint()(hash in prop::array::uniform32(0u8..), n in 0..100u32) -> OutPoint {
|
||||
OutPoint::new(hash, n)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -237,7 +237,7 @@ pub mod testing {
|
|||
use super::{Authorized, Bundle, OutPoint, TzeIn, TzeOut};
|
||||
|
||||
prop_compose! {
|
||||
pub fn arb_outpoint()(txid in arb_txid(), n in 1..100u32) -> OutPoint {
|
||||
pub fn arb_outpoint()(txid in arb_txid(), n in 0..100u32) -> OutPoint {
|
||||
OutPoint::new(txid, n)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue