Skip to content

Commit

Permalink
Improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadalm committed Jul 14, 2023
1 parent 4b406f8 commit e3656c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ mod tests {
plants: HashMap::new(),
};
new_points.add(PlantType::Sunflower);
println!("new points: {:?}", new_points);

let pts = points();
pts.save(deps.as_mut().storage, "123", &new_points).unwrap();

Expand All @@ -277,7 +277,6 @@ mod tests {
})
.collect();

println!("result: {:?}", res);
assert_eq!(2, 2)
assert_eq!(res.unwrap(), vec![("123".to_string(), 1)])
}
}

0 comments on commit e3656c8

Please sign in to comment.