@@ -34,25 +34,33 @@ object Tag:
3434@ main def Test =
3535 assert(ES .A .toString == " overridden" , s " ES.A.toString = ${ES .A .toString}" )
3636 assert(ES .A .productPrefix == " A" , s " ES.A.productPrefix = ${ES .A .productPrefix}" )
37+ assert(ES .A .enumLabel == " A" , s " ES.A.enumLabel = ${ES .A .enumLabel}" )
3738 assert(ES .valueOf(" A" ) == ES .A , s " ES.valueOf(A) = ${ES .valueOf(" A" )}" )
3839 assert(EJ .B .toString == " overridden" , s " EJ.B.toString = ${EJ .B .toString}" )
3940 assert(EJ .B .productPrefix == " B" , s " EJ.B.productPrefix = ${EJ .B .productPrefix}" )
41+ assert(EJ .B .enumLabel == " B" , s " EJ.B.enumLabel = ${EJ .B .enumLabel}" )
4042 assert(EJ .valueOf(" B" ) == EJ .B , s " EJ.valueOf(B) = ${EJ .valueOf(" B" )}" )
4143 assert(EM .C .toString == " overridden" , s " EM.C.toString = ${EM .C .toString}" )
4244 assert(EM .C .productPrefix == " C" , s " EM.C.productPrefix = ${EM .C .productPrefix}" )
45+ assert(EM .C .enumLabel == " C" , s " EM.C.enumLabel = ${EM .C .enumLabel}" )
4346 assert(EM .valueOf(" C" ) == EM .C , s " EM.valueOf(C) = ${EM .valueOf(" C" )}" )
4447 assert(ET .D .toString == " overridden" , s " ET.D.toString = ${ET .D .toString}" )
4548 assert(ET .D .productPrefix == " D" , s " ET.D.productPrefix = ${ET .D .productPrefix}" )
49+ assert(ET .D .enumLabel == " D" , s " ET.D.enumLabel = ${ET .D .enumLabel}" )
4650 assert(EZ .E (0 ).toString == " overridden" , s " EZ.E(0).toString = ${EZ .E (0 ).toString}" )
4751 assert(EZ .E (0 ).productPrefix == " E" , s " EZ.E(0).productPrefix = ${EZ .E (0 ).productPrefix}" )
52+ assert(EZ .E (0 ).enumLabel == " E" , s " EZ.E(0).enumLabel = ${EZ .E (0 ).enumLabel}" )
4853 assert(EC .F .toString == " F" , s " EC.F.toString = ${EC .F .toString}" )
4954 assert(EC .F .productPrefix == " F" , s " EC.F.productPrefix = ${EC .F .productPrefix}" )
55+ assert(EC .F .enumLabel == " F" , s " EC.F.enumLabel = ${EC .F .enumLabel}" )
5056 assert(EC .valueOf(" F" ) == EC .F , s " EC.valueOf(F) = ${EC .valueOf(" F" )}" )
5157 assert(EC .G (0 ).toString == " G(0)" , s " EC.G(0).toString = ${EC .G (0 ).toString}" )
5258 assert(EC .G (0 ).productPrefix == " G" , s " EC.G(0).productPrefix = ${EC .G (0 ).productPrefix}" )
59+ assert(EC .G (0 ).enumLabel == " G" , s " EC.G(0).enumLabel = ${EC .G (0 ).enumLabel}" )
5360
5461 assert(
5562 assertion = Tag .IntTag .toString == s " ${Tag .IntTag .getClass.getName}@ ${Integer .toHexString(123 )}" ,
5663 message = s " Tag.IntTag.toString = ${Tag .IntTag .toString}"
5764 )
5865 assert(Tag .IntTag .productPrefix == Tag .IntTag .toString, s " Tag.IntTag.productPrefix = ${Tag .IntTag .productPrefix}" )
66+ assert(Tag .IntTag .enumLabel == Tag .IntTag .toString, s " Tag.IntTag.enumLabel = ${Tag .IntTag .enumLabel}" )
0 commit comments