Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/tvm-ffi
/ test_dict_update
Function
test_dict_update
tests/python/test_container.py:592–596 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
590
591
592
def
test_dict_update() -> None:
593
d = tvm_ffi.Dict({
"a"
: 1})
594
d.update({
"b"
: 2,
"c"
: 3})
595
assert len(d) == 3
596
assert d[
"b"
] == 2
597
598
599
def
test_dict_iteration() -> None:
Callers
nothing calls this directly
Calls
2
update
Method · 0.95
Dict
Method · 0.80
Tested by
no test coverage detected