Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clear and is_empty methods to Map #803

Merged
merged 5 commits into from
Sep 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix lint errors
  • Loading branch information
manu0466 committed Sep 19, 2022
commit 34dfdf7bd41cded8d3a06a2823b6a99a118d41b2
10 changes: 5 additions & 5 deletions packages/storage-plus/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1561,11 +1561,11 @@ mod test {

TEST_MAP.clear(&mut storage);

assert!(!TEST_MAP.has(&mut storage, "key0"));
assert!(!TEST_MAP.has(&mut storage, "key1"));
assert!(!TEST_MAP.has(&mut storage, "key2"));
assert!(!TEST_MAP.has(&mut storage, "key3"));
assert!(!TEST_MAP.has(&mut storage, "key4"));
assert!(!TEST_MAP.has(&storage, "key0"));
assert!(!TEST_MAP.has(&storage, "key1"));
assert!(!TEST_MAP.has(&storage, "key2"));
assert!(!TEST_MAP.has(&storage, "key3"));
assert!(!TEST_MAP.has(&storage, "key4"));
}

#[test]
Expand Down