379cb741ed
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
25 lines
848 B
Rust
25 lines
848 B
Rust
use crate::{mock::*, Error, Event, Something};
|
|
use pezframe_support::{assert_noop, assert_ok};
|
|
|
|
#[test]
|
|
fn it_works_for_default_value() {
|
|
new_test_ext().execute_with(|| {
|
|
// Go past genesis block so events get deposited
|
|
System::set_block_number(1);
|
|
// Dispatch a signed extrinsic.
|
|
assert_ok!(Template::do_something(RuntimeOrigin::signed(1), 42));
|
|
// Read pallet storage and assert an expected result.
|
|
assert_eq!(Something::<Test>::get(), Some(42));
|
|
// Assert that the correct event was deposited
|
|
System::assert_last_event(Event::SomethingStored { something: 42, who: 1 }.into());
|
|
});
|
|
}
|
|
|
|
#[test]
|
|
fn correct_error_for_none_value() {
|
|
new_test_ext().execute_with(|| {
|
|
// Ensure the expected error is thrown when no value is present.
|
|
assert_noop!(Template::cause_error(RuntimeOrigin::signed(1)), Error::<Test>::NoneValue);
|
|
});
|
|
}
|