Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
  • Loading branch information
jayzhan211 committed May 23, 2024
1 parent d8d7175 commit 0cd39cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/test/collections/test_dict.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ def test_find_get():
assert_equal(some_dict.find("not_key").or_else(0), 0)
assert_equal(some_dict.get("not_key", 0), 0)


def test_dict_popitem():
var dict = Dict[String, Int]()
dict["a"] = 1
Expand All @@ -526,6 +527,7 @@ def test_dict_popitem():
with assert_raises(contains="KeyError"):
_ = dict.popitem()


fn test_clear() raises:
var some_dict = Dict[String, Int]()
some_dict["key"] = 1
Expand Down

0 comments on commit 0cd39cf

Please sign in to comment.