setting work
This commit is contained in:
@@ -20,6 +20,11 @@ class TestDAGSetInit:
|
||||
assert len(s) == 3
|
||||
assert set(s) == {"foo", 2, 3}
|
||||
|
||||
def test_from_str(self) -> None:
|
||||
s = DAGSetView("foo")
|
||||
assert len(s) == 1
|
||||
assert set(s) == {"foo"}
|
||||
|
||||
def test_from_list(self) -> None:
|
||||
s = DAGSetView(["foo", 2, 3, 2])
|
||||
assert len(s) == 3
|
||||
|
||||
Reference in New Issue
Block a user