@@ -166,10 +166,20 @@ def remove_cell(self, obj, pos, dirty={}):
166
166
sage: ta = TableauGridViewAdapter()
167
167
sage: ta.remove_cell(t, (1, 1))
168
168
[[1, 2, 5, 6], [3], [4]]
169
+ sage: ta.remove_cell(t, (2, 0))
170
+ [[1, 2, 5, 6], [3, 7]]
169
171
sage: ta.remove_cell(t, (2, 1))
170
172
Traceback (most recent call last):
171
173
...
172
174
ValueError: Cell position '(2, 1)' is not removable.
175
+ sage: from sage.combinat.tableau import StandardTableau
176
+ sage: from sage_widget_adapters.combinat.tableau_grid_view_adapter import StandardTableauGridViewAdapter
177
+ sage: st = StandardTableau([[1, 2, 5, 6], [3, 7], [4]])
178
+ sage: sta = StandardTableauGridViewAdapter()
179
+ sage: sta.remove_cell(st, (1, 1))
180
+ [[1, 2, 5, 6], [3], [4]]
181
+ sage: sta.remove_cell(st, (2, 0))
182
+ ValueError('the entries in a standard tableau must be in bijection with 1,2,...,n',)
173
183
"""
174
184
if not pos in self .removable_cells (obj ):
175
185
raise ValueError ("Cell position '%s' is not removable." % str (pos ))
0 commit comments