Ticket #5794: trac_5794-long-time-nt.patch

File trac_5794-long-time-nt.patch, 10.1 KB (added by nthiery, 13 years ago)

Annotates the long tests with their time, and disables one which took 160s.

  • sage/combinat/root_system/weyl_characters.py

    # HG changeset patch
    # User Nicolas M. Thiery <nthiery@users.sf.net>
    # Date 1258629791 -3600
    # Node ID d568eaeefdf91ddbf9f3a8283e3049fa9d0bc986
    # Parent  142e64bbdd963ed7af7e35f77f8c07ab2090813e
    [mq]: trac_5794-long-time-nt.patch
    
    diff --git a/sage/combinat/root_system/weyl_characters.py b/sage/combinat/root_system/weyl_characters.py
    a b class WeylCharacter(AlgebraElement): 
    114114       
    115115            sage: R = WeylCharacterRing("B3", prefix = "R")
    116116            sage: r =  R(1,1,0)
    117             sage: r == loads(dumps(r))
    118             True
     117            sage: TestSuite(r).run()
    119118        """
    120119        AlgebraElement.__init__(self, A)
    121120        self._hdict = hdict
    class WeylCharacterRing_class(Algebra): 
    621620        EXAMPLES::
    622621       
    623622            sage: R = WeylCharacterRing(['A',3])
    624             sage: R == loads(dumps(R))
    625             True
     623            sage: TestSuite(R).run()
    626624        """
    627625        sage.structure.parent_base.ParentWithBase.__init__(self, base_ring)
    628626
    def branch_weyl_character(chi, R, S, rul 
    12851283        sage: D4 = WeylCharacterRing("D4")
    12861284        sage: D5 = WeylCharacterRing("D5")
    12871285        sage: G2 = WeylCharacterRing("G2")
    1288         sage: F4 = WeylCharacterRing("F4",style="coroots") # long time
     1286        sage: F4 = WeylCharacterRing("F4",style="coroots")
    12891287        sage: E6=WeylCharacterRing("E6",style="coroots")
    12901288        sage: D5=WeylCharacterRing("D5",style="coroots")
    12911289        sage: [B3(w).branch(A2,rule="levi") for w in B3.fundamental_weights()]
    def branch_weyl_character(chi, R, S, rul 
    13281326         D4(1/2,1/2,1/2,-1/2) + D4(1/2,1/2,1/2,1/2)]
    13291327        sage: G2(1,0,-1).branch(A1,rule="levi")
    13301328         A1(0,-1) + A1(1,-1) + A1(1,0)
    1331         sage: E6=WeylCharacterRing("E6",style="coroots") # long time
    1332         sage: D5=WeylCharacterRing("D5",style="coroots") # long time
    1333         sage: fw = E6.fundamental_weights() # long time
    1334         sage: [E6(fw[i]).branch(D5,rule="levi") for i in [1,2,6]] # long time
     1329        sage: E6=WeylCharacterRing("E6",style="coroots")
     1330        sage: D5=WeylCharacterRing("D5",style="coroots")
     1331        sage: fw = E6.fundamental_weights()
     1332        sage: [E6(fw[i]).branch(D5,rule="levi") for i in [1,2,6]] # long time (3s)
    13351333        [D5(0,0,0,0,0) + D5(0,0,0,0,1) + D5(1,0,0,0,0),
    13361334         D5(0,0,0,0,0) + D5(0,0,0,1,0) + D5(0,0,0,0,1) + D5(0,1,0,0,0),
    13371335         D5(0,0,0,0,0) + D5(0,0,0,1,0) + D5(1,0,0,0,0)]
    1338         sage: E7=WeylCharacterRing("E7",style="coroots") # long time
    1339         sage: D6=WeylCharacterRing("D6",style="coroots") # long time
    1340         sage: fw = E7.fundamental_weights() # long time
    1341         sage: [E7(fw[i]).branch(D6,rule="levi") for i in [1,2,7]] # long time
     1336        sage: E7=WeylCharacterRing("E7",style="coroots")
     1337        sage: D6=WeylCharacterRing("D6",style="coroots")
     1338        sage: fw = E7.fundamental_weights()
     1339        sage: [E7(fw[i]).branch(D6,rule="levi") for i in [1,2,7]] # long time (26s)
    13421340        [3*D6(0,0,0,0,0,0) + 2*D6(0,0,0,0,1,0) + D6(0,1,0,0,0,0),
    13431341         3*D6(0,0,0,0,0,1) + 2*D6(1,0,0,0,0,0) + 2*D6(0,0,1,0,0,0) + D6(1,0,0,0,1,0),
    13441342         D6(0,0,0,0,0,1) + 2*D6(1,0,0,0,0,0)]
    1345         sage: D7=WeylCharacterRing("D7",style="coroots",cache=True) # long time
    1346         sage: E8=WeylCharacterRing("E8",style="coroots",cache=True) # long time
    1347         sage: D7=WeylCharacterRing("D7",style="coroots",cache=True) # long time
    1348         sage: E8(1,0,0,0,0,0,0,0).branch(D7,rule="levi") # long time
     1343        sage: D7=WeylCharacterRing("D7",style="coroots",cache=True)
     1344        sage: E8=WeylCharacterRing("E8",style="coroots",cache=True)
     1345        sage: D7=WeylCharacterRing("D7",style="coroots",cache=True)
     1346        sage: E8(1,0,0,0,0,0,0,0).branch(D7,rule="levi") # not tested (very long time) (160s)
    13491347         3*D7(0,0,0,0,0,0,0) + 2*D7(0,0,0,0,0,1,0) + 2*D7(0,0,0,0,0,0,1) + 2*D7(1,0,0,0,0,0,0)
    13501348         + D7(0,1,0,0,0,0,0) + 2*D7(0,0,1,0,0,0,0) + D7(0,0,0,1,0,0,0) + D7(1,0,0,0,0,1,0) + D7(1,0,0,0,0,0,1) + D7(2,0,0,0,0,0,0)
    1351         sage: E8(0,0,0,0,0,0,0,1).branch(D7,rule="levi") # long time
     1349        sage: E8(0,0,0,0,0,0,0,1).branch(D7,rule="levi") # long time (3s)
    13521350         D7(0,0,0,0,0,0,0) + D7(0,0,0,0,0,1,0) + D7(0,0,0,0,0,0,1) + 2*D7(1,0,0,0,0,0,0) + D7(0,1,0,0,0,0,0)
    1353         sage: [F4(fw).branch(B3,rule="levi") for fw in F4.fundamental_weights()] # long time
     1351        sage: [F4(fw).branch(B3,rule="levi") for fw in F4.fundamental_weights()] # long time (36s)
    13541352         [B3(0,0,0) + 2*B3(1/2,1/2,1/2) + 2*B3(1,0,0) + B3(1,1,0),
    13551353         B3(0,0,0) + 6*B3(1/2,1/2,1/2) + 5*B3(1,0,0) + 7*B3(1,1,0) + 3*B3(1,1,1)
    13561354         + 6*B3(3/2,1/2,1/2) + 2*B3(3/2,3/2,1/2) + B3(2,0,0) + 2*B3(2,1,0) + B3(2,1,1),
    13571355         3*B3(0,0,0) + 6*B3(1/2,1/2,1/2) + 4*B3(1,0,0) + 3*B3(1,1,0) + B3(1,1,1) + 2*B3(3/2,1/2,1/2),
    13581356         3*B3(0,0,0) + 2*B3(1/2,1/2,1/2) + B3(1,0,0)]
    1359         sage: [F4(fw).branch(C3,rule="levi") for fw in F4.fundamental_weights()] # long time
     1357        sage: [F4(fw).branch(C3,rule="levi") for fw in F4.fundamental_weights()] # long time (6s)
    13601358         [3*C3(0,0,0) + 2*C3(1,1,1) + C3(2,0,0),
    13611359         3*C3(0,0,0) + 6*C3(1,1,1) + 4*C3(2,0,0) + 2*C3(2,1,0) + 3*C3(2,2,0) + C3(2,2,2) + C3(3,1,0) + 2*C3(3,1,1),
    13621360         2*C3(1,0,0) + 3*C3(1,1,0) + C3(2,0,0) + 2*C3(2,1,0) + C3(2,1,1),
    def branch_weyl_character(chi, R, S, rul 
    13971395        [B3(0,0,0) + B3(1,0,0), B3(1,0,0) + B3(1,1,0), B3(1/2,1/2,1/2), B3(1/2,1/2,1/2)]
    13981396        sage: [D4(x).branch(G2,rule="symmetric") for x in D4.fundamental_weights()]
    13991397        [G2(0,0,0) + G2(1,0,-1), 2*G2(1,0,-1) + G2(2,-1,-1), G2(0,0,0) + G2(1,0,-1), G2(0,0,0) + G2(1,0,-1)]
    1400         sage: [E6(fw).branch(F4,rule="symmetric") for fw in E6.fundamental_weights()] # long time
     1398        sage: [E6(fw).branch(F4,rule="symmetric") for fw in E6.fundamental_weights()] # long time (36s)
    14011399        [F4(0,0,0,0) + F4(0,0,0,1),
    14021400         F4(0,0,0,1) + F4(1,0,0,0),
    14031401         F4(0,0,0,1) + F4(1,0,0,0) + F4(0,0,1,0),
    def branch_weyl_character(chi, R, S, rul 
    14161414        sage: [G2(w).branch(A2, rule="extended") for w in G2.fundamental_weights()]
    14171415        [A2(0,0,0) + A2(1/3,1/3,-2/3) + A2(2/3,-1/3,-1/3),
    14181416         A2(1/3,1/3,-2/3) + A2(2/3,-1/3,-1/3) + A2(1,0,-1)]
    1419         sage: [F4(fw).branch(B4,rule="extended") for fw in F4.fundamental_weights()] # long time
     1417        sage: [F4(fw).branch(B4,rule="extended") for fw in F4.fundamental_weights()] # long time (9s)
    14201418        [B4(1/2,1/2,1/2,1/2) + B4(1,1,0,0),
    14211419         B4(1,1,0,0) + B4(1,1,1,0) + B4(3/2,1/2,1/2,1/2) + B4(3/2,3/2,1/2,1/2) + B4(2,1,1,0),
    14221420         B4(1/2,1/2,1/2,1/2) + B4(1,0,0,0) + B4(1,1,0,0) + B4(1,1,1,0) + B4(3/2,1/2,1/2,1/2),
    14231421         B4(0,0,0,0) + B4(1/2,1/2,1/2,1/2) + B4(1,0,0,0)]
    14241422
    1425         sage: E6 = WeylCharacterRing("E6", style="coroots") # long time
     1423        sage: E6 = WeylCharacterRing("E6", style="coroots")
    14261424        sage: A2xA2xA2=WeylCharacterRing("A2xA2xA2",style="coroots")
    14271425        sage: A5xA1=WeylCharacterRing("A5xA1",style="coroots")
    14281426        sage: G2 = WeylCharacterRing("G2", style="coroots")
    def branch_weyl_character(chi, R, S, rul 
    14321430        sage: A2xA2 = WeylCharacterRing("A2xA2", style="coroots")
    14331431        sage: A1xC3 = WeylCharacterRing("A1xC3",style="coroots")
    14341432
    1435         sage: E6(1,0,0,0,0,0).branch(A5xA1,rule="extended") # long time
     1433        sage: E6(1,0,0,0,0,0).branch(A5xA1,rule="extended") # (0.7s)
    14361434         A5xA1(0,0,0,1,0,0) + A5xA1(1,0,0,0,0,1)
    1437         sage: E6(1,0,0,0,0,0).branch(A2xA2xA2, rule="extended") # long time
     1435        sage: E6(1,0,0,0,0,0).branch(A2xA2xA2, rule="extended") # (0.7s)
    14381436         A2xA2xA2(0,0,0,1,1,0) + A2xA2xA2(0,1,1,0,0,0) + A2xA2xA2(1,0,0,0,0,1)
    1439         sage: E7=WeylCharacterRing("E7",style="coroots") # long time
    1440         sage: A7=WeylCharacterRing("A7",style="coroots") # long time
    1441         sage: E7(1,0,0,0,0,0,0).branch(A7,rule="extended") # long time
     1437        sage: E7=WeylCharacterRing("E7",style="coroots")
     1438        sage: A7=WeylCharacterRing("A7",style="coroots")
     1439        sage: E7(1,0,0,0,0,0,0).branch(A7,rule="extended") # long time (5s)
    14421440         A7(0,0,0,1,0,0,0) + A7(1,0,0,0,0,0,1)
    1443         sage: E8=WeylCharacterRing("E8",cache=true,style="coroots") # long time
    1444         sage: D8=WeylCharacterRing("D8",cache=true,style="coroots") # long time
    1445         sage: E8(0,0,0,0,0,0,0,1).branch(D8,rule="extended") # long time
     1441        sage: E8=WeylCharacterRing("E8",cache=true,style="coroots")
     1442        sage: D8=WeylCharacterRing("D8",cache=true,style="coroots")
     1443        sage: E8(0,0,0,0,0,0,0,1).branch(D8,rule="extended") # long time (19s)
    14461444         D8(0,0,0,0,0,0,1,0) + D8(0,1,0,0,0,0,0,0)
    1447         sage: F4(1,0,0,0).branch(A1xC3,rule="extended") # long time
     1445        sage: F4(1,0,0,0).branch(A1xC3,rule="extended") # (0.7s)
    14481446         A1xC3(0,2,0,0) + A1xC3(1,0,0,1) + A1xC3(2,0,0,0)
    14491447        sage: G2(0,1).branch(A1xA1, rule="extended")
    14501448         A1xA1(0,2) + A1xA1(2,0) + A1xA1(3,1)
    1451         sage: F4(0,0,0,1).branch(A2xA2, rule="extended") # long time
     1449        sage: F4(0,0,0,1).branch(A2xA2, rule="extended") # (0.4s)
    14521450         A2xA2(0,0,1,1) + A2xA2(0,1,0,1) + A2xA2(1,0,1,0)
    1453         sage: F4(0,0,0,1).branch(A3xA1,rule="extended") # long time
     1451        sage: F4(0,0,0,1).branch(A3xA1,rule="extended") # (0.34s)
    14541452         A3xA1(0,0,0,0) + A3xA1(0,0,0,2) + A3xA1(0,0,1,1) + A3xA1(0,1,0,0) + A3xA1(1,0,0,1)
    14551453        sage: D4=WeylCharacterRing("D4",style="coroots")
    14561454        sage: D2xD2=WeylCharacterRing("D2xD2",style="coroots") # We get D4 => A1xA1xA1xA1 by remembering that A1xA1 = D2.
    class WeightRingElement(AlgebraElement): 
    22172215       
    22182216            sage: A2 = WeylCharacterRing(['A',2])
    22192217            sage: a2 = WeightRing(A2)
    2220             sage: a2 == loads(dumps(a2))
    2221             True
     2218            sage: TestSuite(a2).run()
    22222219        """
    22232220        AlgebraElement.__init__(self, A)
    22242221        self._mdict = mdict
    class WeightRing(Algebra): 
    25062503       
    25072504            sage: R = WeylCharacterRing(['G',2], prefix = "R", base_ring = QQ)
    25082505            sage: S = WeightRing(R, prefix = "S")
    2509             sage: S == loads(dumps(S))
    2510             True
     2506            sage: TestSuite(S).run()
    25112507        """
    25122508        self._parent = A
    25132509        self._cartan_type = self._parent._cartan_type