mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
min max public attributes
This commit is contained in:
parent
28950ab233
commit
f0e6fa4647
@ -58,9 +58,9 @@ class SigTest(TestCase):
|
|||||||
self.negedgeWaiters = [object() for i in range(7)]
|
self.negedgeWaiters = [object() for i in range(7)]
|
||||||
|
|
||||||
def testPublicInterface(self):
|
def testPublicInterface(self):
|
||||||
""" public interface of a sig: val, next, posedge, negedge"""
|
""" public interface of a sig: val, next, posedge, negedge, min, max"""
|
||||||
s1 = Signal(1)
|
s1 = Signal(1)
|
||||||
expected = ['next', 'val', 'posedge', 'negedge']
|
expected = ['next', 'val', 'posedge', 'negedge', 'min', 'max']
|
||||||
iface = [attr for attr in dir(s1) if attr[0] != '_']
|
iface = [attr for attr in dir(s1) if attr[0] != '_']
|
||||||
expected.sort()
|
expected.sort()
|
||||||
iface.sort()
|
iface.sort()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user