Skip to content

Commit 1ef8fbc

Browse files
Test IntersectionSet attribute repr
1 parent 0a362aa commit 1ef8fbc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyomo/contrib/pyros/tests/test_uncertainty_sets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,6 +1448,8 @@ class behaves like a regular Python list.
14481448
# assigning to slices should work fine
14491449
all_sets[3:] = [BoxSet([[1, 1.5]]), BoxSet([[1, 3]])]
14501450

1451+
self.assertRegex(repr(all_sets), r"UncertaintySetList\(\[.*\]\)")
1452+
14511453
def test_set_as_constraint(self):
14521454
"""
14531455
Test method for setting up constraints works correctly.

0 commit comments

Comments
 (0)