# HG changeset patch
# User Simon King <simon.king@uni-jena.de>
# Date 1362484420 -3600
# Node ID 46d4c6bf40f9b2e8f391a6cee5d5db6ae1db6440
# Parent 241c2bea4c1fc37184eb910aa40eaf0640ba40e5
#14054: Make RiggedConfigurations.list() test random; test against cardinality.
diff --git a/sage/combinat/rigged_configurations/rigged_configurations.py b/sage/combinat/rigged_configurations/rigged_configurations.py
a
|
b
|
|
45 | 45 | Rigged configurations of type ['A', 3, 1] and factors ((2, 1),) |
46 | 46 | sage: RC.cardinality() |
47 | 47 | 6 |
48 | | sage: RC.list() |
| 48 | sage: len(RC.list()) == RC.cardinality() |
| 49 | True |
| 50 | sage: sorted(RC.list()) # random |
49 | 51 | [ |
50 | 52 | (/) |
51 | 53 | <BLANKLINE> |
… |
… |
|
589 | 591 | EXAMPLES:: |
590 | 592 | |
591 | 593 | sage: RC = HighestWeightRiggedConfigurations(['D', 4, 1], [[2, 2]]) |
592 | | sage: RC.list() |
| 594 | sage: len(RC.list()) == RC.cardinality() |
| 595 | True |
| 596 | sage: sorted(RC.list()) # random |
593 | 597 | [ |
594 | 598 | (/) |
595 | 599 | <BLANKLINE> |