mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
2ab3f03f0b
Removes the `bridges/snowbridge/parachain` directory and moves everything up to under `snowbridge` directly. We are cleaning up our local dev env after merging our crates into the polkadot-sdk. --------- Co-authored-by: claravanstaden <Cats 4 life!>
15 lines
477 B
Rust
15 lines
477 B
Rust
#[cfg(test)]
|
|
mod tests {
|
|
use frame_support::traits::Contains;
|
|
use snowbridge_core::AllowSiblingsOnly;
|
|
use xcm::prelude::{Junction::Parachain, Location};
|
|
|
|
#[test]
|
|
fn allow_siblings_predicate_only_allows_siblings() {
|
|
let sibling = Location::new(1, [Parachain(1000)]);
|
|
let child = Location::new(0, [Parachain(1000)]);
|
|
assert!(AllowSiblingsOnly::contains(&sibling), "Sibling returns true.");
|
|
assert!(!AllowSiblingsOnly::contains(&child), "Child returns false.");
|
|
}
|
|
}
|