Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenad committed Jun 5, 2024
1 parent f7e0599 commit 17f2dd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions listings/advanced-concepts/using_lists/src/tests.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use using_lists::contract::IListExample;
use using_lists::contract::{Task, ListExample};
use using_lists::contract::ListExample::{
amountContractMemberStateTrait, tasksContractMemberStateTrait
amountsContractMemberStateTrait, tasksContractMemberStateTrait
};

fn STATE() -> ListExample::ContractState {
Expand All @@ -13,7 +13,7 @@ fn STATE() -> ListExample::ContractState {
fn test_add_in_amount() {
let mut state = STATE();
state.add_in_amount(200);
assert(state.amount.read()[0] == 200, 'should be 200');
assert(state.amounts.read()[0] == 200, 'should be 200');
}

#[test]
Expand Down Expand Up @@ -67,7 +67,7 @@ fn test_set_from_index() {
let mut state = STATE();
state.add_in_amount(200);
state.set_from_index(0, 400);
assert(state.amount.read()[0] == 400, 'should be 400');
assert(state.amounts.read()[0] == 400, 'should be 400');
}

#[test]
Expand Down

0 comments on commit 17f2dd1

Please sign in to comment.