Skip to content

Commit

Permalink
style: ran cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
h4sh3d committed Jul 11, 2022
1 parent 213fb45 commit 18c6080
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions src/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,16 +513,34 @@ mod tests {

#[test]
fn bitcoin_network_conversion() {
assert_eq!(bitcoin::Network::from(Network::Mainnet), bitcoin::Network::Bitcoin);
assert_eq!(bitcoin::Network::from(Network::Testnet), bitcoin::Network::Testnet);
assert_eq!(bitcoin::Network::from(Network::Local), bitcoin::Network::Regtest);
assert_eq!(
bitcoin::Network::from(Network::Mainnet),
bitcoin::Network::Bitcoin
);
assert_eq!(
bitcoin::Network::from(Network::Testnet),
bitcoin::Network::Testnet
);
assert_eq!(
bitcoin::Network::from(Network::Local),
bitcoin::Network::Regtest
);
}

#[test]
fn monero_network_conversion() {
assert_eq!(monero::Network::from(Network::Mainnet), monero::Network::Mainnet);
assert_eq!(monero::Network::from(Network::Testnet), monero::Network::Stagenet);
assert_eq!(monero::Network::from(Network::Local), monero::Network::Mainnet);
assert_eq!(
monero::Network::from(Network::Mainnet),
monero::Network::Mainnet
);
assert_eq!(
monero::Network::from(Network::Testnet),
monero::Network::Stagenet
);
assert_eq!(
monero::Network::from(Network::Local),
monero::Network::Mainnet
);
}

#[test]
Expand Down

0 comments on commit 18c6080

Please sign in to comment.