Add test files I forgot to commit with #4520 (#4598)

This commit is contained in:
Bastian Köcher
2020-01-11 18:23:04 +01:00
committed by GitHub
parent e00ddc5614
commit 070148e9fd
4 changed files with 38 additions and 0 deletions
@@ -0,0 +1,14 @@
use frame_support::construct_runtime;
construct_runtime! {
pub enum Runtime where
Block = Block,
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic
{
System: system,
Balance: balances::{default, Error},
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Only the following modules are allowed: `Module`, `Call`, `Storage`, `Event`, `Config`, `Origin`, `Inherent`, `ValidateUnsigned`
--> $DIR/default_module_invalid_arg.rs:10:32
|
10 | Balance: balances::{default, Error},
| ^^^^^
@@ -0,0 +1,14 @@
use frame_support::construct_runtime;
construct_runtime! {
pub enum Runtime where
Block = Block,
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic
{
System: system,
Balance: balances::{Error},
}
}
fn main() {}
@@ -0,0 +1,5 @@
error: Only the following modules are allowed: `Module`, `Call`, `Storage`, `Event`, `Config`, `Origin`, `Inherent`, `ValidateUnsigned`
--> $DIR/invalid_module_entry.rs:10:23
|
10 | Balance: balances::{Error},
| ^^^^^