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