INNER CODE UNIT · Rust

test_id

n42blockchain/N42-rs · crates/chainspec/src/lib.rs:53

    fn test_id() {
        let chain = Chain::from(1234);
        assert_eq!(chain.id(), 1234);
    }

    #[test]
    fn test_named_id() {
        let chain = Chain::holesky();
        assert_eq!(chain.id(), 17000);
    }

    #[test]
    fn test_display_named_chain() {
        let chain = Chain::mainnet();
        assert_eq!(format!("{chain}"), "mainnet");
    }

    #[test]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…