Skip to content

Commit

Permalink
Check test
Browse files Browse the repository at this point in the history
  • Loading branch information
olahfemi committed Dec 16, 2024
1 parent 6f24017 commit 9f61932
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion src/balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ mod tests {
fn init_balances() {
let mut balances = super::Pallet::<TestConfig>::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);
Expand Down
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9f61932

Please sign in to comment.