diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53d486d..81feb02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,4 +25,12 @@ jobs: uses: actions/checkout@v4 - name: Check Clippy run: cargo clippy --all-targets --all-features --workspace -- -D warnings + + test: + runs-on: ubuntu-24.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Check Test + run: cargo test diff --git a/src/balances.rs b/src/balances.rs index 947ad84..81d9e8a 100644 --- a/src/balances.rs +++ b/src/balances.rs @@ -102,7 +102,7 @@ mod tests { fn init_balances() { let mut balances = super::Pallet::::new(); - assert_eq!(balances.balance(&"alice".to_string()), 0); + assert_eq!(balances.balance(&"alice".to_string()), 1); balances.set_balance(&"alice".to_string(), 100); assert_eq!(balances.balance(&"alice".to_string()), 100); assert_eq!(balances.balance(&"bob".to_string()), 0); diff --git a/src/main.rs b/src/main.rs index 52da437..d2e384e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,11 +5,6 @@ mod system; use crate::support::Dispatch; -const a = 0; -const b = 1; -const c = 2; -if c > 3 {} - // These are the concrete types we will use in our simple state machine. // Modules are configured for these types directly, and they satisfy all of our // trait requirements.