File tree Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -268,8 +268,16 @@ def _latex_diagram(self):
268
268
&\lr{\ast}&\lr{\ast}\\\cline{2-3}
269
269
\end{array}$}
270
270
}
271
+
272
+ TESTS:
273
+
274
+ Check that :trac:`34760` is fixed::
275
+
276
+ sage: print(SkewPartition([[],[]])._latex_diagram())
277
+ {\emptyset}
278
+
271
279
"""
272
- if len (self ._list ) == 0 :
280
+ if not any (self ._list ):
273
281
return "{\\ emptyset}"
274
282
275
283
char = self .parent ().options .latex_diagram_str
@@ -295,8 +303,15 @@ def _latex_young_diagram(self):
295
303
&\lr{\phantom{x}}&\lr{\phantom{x}}\\\cline{2-3}
296
304
\end{array}$}
297
305
}
306
+
307
+ TESTS:
308
+
309
+ Check that :trac:`34760` is fixed::
310
+
311
+ sage: print(SkewPartition([[],[]])._latex_young_diagram())
312
+ {\emptyset}
298
313
"""
299
- if len (self ._list ) == 0 :
314
+ if not any (self ._list ):
300
315
return "{\\ emptyset}"
301
316
302
317
from sage .combinat .output import tex_from_array
@@ -320,8 +335,15 @@ def _latex_marked(self):
320
335
\lr{X}&\lr{\phantom{x}}&\lr{\phantom{x}}\\\cline{1-3}
321
336
\end{array}$}
322
337
}
338
+
339
+ TESTS:
340
+
341
+ Check that :trac:`34760` is fixed::
342
+
343
+ sage: print(SkewPartition([[],[]])._latex_marked())
344
+ {\emptyset}
323
345
"""
324
- if len (self ._list ) == 0 :
346
+ if not any (self ._list ):
325
347
return "{\\ emptyset}"
326
348
327
349
from sage .combinat .output import tex_from_array
You can’t perform that action at this time.
0 commit comments