INNER CODE UNIT · Rust
test_from_str_id_chain
n42blockchain/N42-rs · crates/chainspec/src/lib.rs:111
fn test_from_str_id_chain() {
let result = Chain::from_str("1234");
let expected = Chain::from(1234);
assert!(result.is_ok());
assert_eq!(result.unwrap(), expected);
}
#[test]
fn test_default() {
let default = Chain::default();
let expected = Chain::mainnet();
assert_eq!(default, expected);
}
#[test]
fn test_id_chain_encodable_length() {