Test is_child_trace_address
This commit is contained in:
parent
ee7659b044
commit
f59b2b2b82
14
tests/test_traces.py
Normal file
14
tests/test_traces.py
Normal file
@ -0,0 +1,14 @@
|
||||
from mev_inspect.traces import is_child_trace_address
|
||||
|
||||
|
||||
def test_is_child_trace_address():
|
||||
assert is_child_trace_address([0], [])
|
||||
assert is_child_trace_address([0, 0], [])
|
||||
assert is_child_trace_address([0, 0], [0])
|
||||
assert is_child_trace_address([100, 1, 10], [100])
|
||||
assert is_child_trace_address([100, 1, 10], [100, 1])
|
||||
|
||||
assert not is_child_trace_address([0], [1])
|
||||
assert not is_child_trace_address([1], [0])
|
||||
assert not is_child_trace_address([1, 0], [0])
|
||||
assert not is_child_trace_address([100, 2, 10], [100, 1])
|
Loading…
x
Reference in New Issue
Block a user