90fd044766
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
15 lines
483 B
Rust
15 lines
483 B
Rust
#[cfg(test)]
|
|
mod tests {
|
|
use pezframe_support::traits::Contains;
|
|
use pezsnowbridge_core::AllowSiblingsOnly;
|
|
use xcm::prelude::{Junction::Teyrchain, Location};
|
|
|
|
#[test]
|
|
fn allow_siblings_predicate_only_allows_siblings() {
|
|
let sibling = Location::new(1, [Teyrchain(1000)]);
|
|
let child = Location::new(0, [Teyrchain(1000)]);
|
|
assert!(AllowSiblingsOnly::contains(&sibling), "Sibling returns true.");
|
|
assert!(!AllowSiblingsOnly::contains(&child), "Child returns false.");
|
|
}
|
|
}
|