jdk/test/java/util/EnumMap/EnumMapBash.java
author mfang
Wed, 17 Aug 2011 14:18:26 -0700
changeset 10294 8fcdae2a7ec7
parent 5506 202f599c92aa
child 35314 a7e13065a7a0
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4347
diff changeset
     2
 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4347
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4347
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4347
diff changeset
    21
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 * @test
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 * @bug     4904140
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 * @summary Unit test for EnumMap
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 * @author  Josh Bloch
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 * @author  Yo Yo Ma
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.util.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.io.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
public class EnumMapBash {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
    static Random rnd = new Random();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
    public static void main(String[] args) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
        bash(Silly31.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
        bash(Silly32.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        bash(Silly33.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
        bash(Silly63.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
        bash(Silly64.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
        bash(Silly65.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
        bash(Silly127.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
        bash(Silly128.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
        bash(Silly129.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
        bash(Silly500.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    private static Enum[] ZERO_LENGTH_ENUM_ARRAY = new Enum[0];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    static <T extends Enum<T>> void bash(Class<T> enumClass) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
        Enum[] universe = enumClass.getEnumConstants();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
        int numItr = 100;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
        // Linked List test
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
        for (int i=0; i<numItr; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
            int mapSize = universe.length * 7 / 8;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
            // Build the linked list
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
            Map<T, T> m = new EnumMap<T, T>(enumClass);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
            if (!m.isEmpty())
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                fail("New instance non empty.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
            Enum[] perm = (Enum[]) universe.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
            Collections.shuffle(Arrays.asList(perm));
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
            T head = (T) perm[0];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
            for (int j = 0; j < mapSize; j++)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
                m.put((T)perm[j], (T)perm[j + 1]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
            T nil = (T)perm[mapSize];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
            if (m.size() != mapSize)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
                fail("Size not as expected.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
            Map<T, T> tm = new TreeMap<T, T>(m);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
            if (m.hashCode() != tm.hashCode())
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
                fail("Incorrect hashCode computation.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
            if (!m.toString().equals(tm.toString()))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
                fail("Incorrect toString computation.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
            if (!tm.equals(m))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                fail("Incorrect equals (1).");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
            if (!m.equals(tm))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
                fail("Incorrect equals (2).");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
            Map<T, T> m2 = new EnumMap<T, T>(enumClass); m2.putAll(m);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
            m2.values().removeAll(m.keySet());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
            if (m2.size()!= 1 || !m2.containsValue(nil))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                fail("Collection views test failed.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
            int j=0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
            while (head != nil) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                if (!m.containsKey(head))
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
                    fail("Linked list doesn't contain a link.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
                T newHead = m.get(head);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
                if (newHead == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
                    fail("Could not retrieve a link.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
                m.remove(head);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
                head = newHead;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
                j++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
            if (!m.isEmpty())
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                fail("Map nonempty after removing all links.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
            if (j != mapSize)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                fail("Linked list size not as expected.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        EnumMap<T, T> m = new EnumMap<T, T>(enumClass);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        int mapSize = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        for (int i=0; i<universe.length; i += 2) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
            if (m.put((T)universe[i], (T)universe[i]) != null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                fail("put returns a non-null value erroenously.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
            mapSize++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
        for (int i=0; i<universe.length; i++)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
            if (m.containsValue(universe[i]) != (i%2==0))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                fail("contains value "+i);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
        if (m.put((T)universe[0], (T)universe[0]) == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
            fail("put returns a null value erroenously.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
        Map<T, T>  m2 = m.clone();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        cloneTest(m, m2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        m2 = new EnumMap<T,T>(enumClass);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        m2.putAll(m);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        cloneTest(m, m2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        m2 = new EnumMap<T, T>(m);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        cloneTest(m, m2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        m2 = new EnumMap<T, T>((Map<T, T>) m);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        cloneTest(m, m2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        if (!m.isEmpty()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
            m2 = new EnumMap<T, T>(new HashMap<T, T>(m));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
            cloneTest(m, m2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        m2 = deepCopy(m);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
        cloneTest(m, m2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        if (!m.equals(m2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
            fail("Clone not equal to original. (1)");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        if (!m2.equals(m))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
            fail("Clone not equal to original. (2)");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        Set<Map.Entry<T,T>> s = m.entrySet(), s2 = m2.entrySet();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        if (!s.equals(s2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
            fail("Clone not equal to original. (3)");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
        if (!s2.equals(s))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            fail("Clone not equal to original. (4)");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
        if (!s.containsAll(s2))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
            fail("Original doesn't contain clone!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        if (!s2.containsAll(s))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
            fail("Clone doesn't contain original!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        s2.removeAll(s);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        if (!m2.isEmpty()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            System.out.println(m2.size());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
            System.out.println(m2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
            fail("entrySet().removeAll failed.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        m2.putAll(m);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        m2.clear();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        if (!m2.isEmpty())
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
            fail("clear failed.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
        Iterator i = m.entrySet().iterator();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
        while(i.hasNext()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            i.next();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
            i.remove();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        if (!m.isEmpty())
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
            fail("Iterator.remove() failed");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    // Done inefficiently so as to exercise various functions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    static <K, V> void cloneTest(Map<K, V> m, Map<K, V> clone) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
        if (!m.equals(clone))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
            fail("Map not equal to copy.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        if (!clone.equals(m))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
            fail("Copy not equal to map.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        if (!m.entrySet().containsAll(clone.entrySet()))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
            fail("Set does not contain copy.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        if (!clone.entrySet().containsAll(m.entrySet()))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
            fail("Copy does not contain set.");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        if (!m.entrySet().equals(clone.entrySet()))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
            fail("Set not equal clone set");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        if (!clone.entrySet().equals(m.entrySet()))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
            fail("Clone set not equal set");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    // Utility method to do a deep copy of an object *very slowly* using
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    // serialization/deserialization
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
    static <T> T deepCopy(T oldObj) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
            ObjectOutputStream oos = new ObjectOutputStream(bos);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
            oos.writeObject(oldObj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
            oos.flush();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
            ByteArrayInputStream bin = new ByteArrayInputStream(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                bos.toByteArray());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
            ObjectInputStream ois = new ObjectInputStream(bin);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
            return (T) ois.readObject();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        } catch(Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
            throw new IllegalArgumentException(e.toString());
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    static void fail(String s) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        throw new RuntimeException(s);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    public enum Silly31 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    public enum Silly32 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    public enum Silly33 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
        e32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
    public enum Silly63 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
        e32, e33, e34, e35, e36, e37, e38, e39, e40, e41, e42, e43, e44, e45, e46,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
        e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
        e62
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    public enum Silly64 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
        e32, e33, e34, e35, e36, e37, e38, e39, e40, e41, e42, e43, e44, e45, e46,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
        e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
        e62, e63
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    public enum Silly65 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
        e32, e33, e34, e35, e36, e37, e38, e39, e40, e41, e42, e43, e44, e45, e46,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
        e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
        e62, e63, e64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
    public enum Silly127 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
        e32, e33, e34, e35, e36, e37, e38, e39, e40, e41, e42, e43, e44, e45, e46,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
        e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
        e62, e63, e64, e65, e66, e67, e68, e69, e70, e71, e72, e73, e74, e75, e76,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
        e77, e78, e79, e80, e81, e82, e83, e84, e85, e86, e87, e88, e89, e90, e91,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
        e92, e93, e94, e95, e96, e97, e98, e99, e100, e101, e102, e103, e104, e105,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
        e106, e107, e108, e109, e110, e111, e112, e113, e114, e115, e116, e117,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
        e118, e119, e120, e121, e122, e123, e124, e125, e126
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
    public enum Silly128 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
        e32, e33, e34, e35, e36, e37, e38, e39, e40, e41, e42, e43, e44, e45, e46,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
        e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
        e62, e63, e64, e65, e66, e67, e68, e69, e70, e71, e72, e73, e74, e75, e76,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
        e77, e78, e79, e80, e81, e82, e83, e84, e85, e86, e87, e88, e89, e90, e91,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
        e92, e93, e94, e95, e96, e97, e98, e99, e100, e101, e102, e103, e104, e105,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
        e106, e107, e108, e109, e110, e111, e112, e113, e114, e115, e116, e117,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
        e118, e119, e120, e121, e122, e123, e124, e125, e126, e127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
    public enum Silly129 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
        e32, e33, e34, e35, e36, e37, e38, e39, e40, e41, e42, e43, e44, e45, e46,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
        e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
        e62, e63, e64, e65, e66, e67, e68, e69, e70, e71, e72, e73, e74, e75, e76,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
        e77, e78, e79, e80, e81, e82, e83, e84, e85, e86, e87, e88, e89, e90, e91,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
        e92, e93, e94, e95, e96, e97, e98, e99, e100, e101, e102, e103, e104, e105,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
        e106, e107, e108, e109, e110, e111, e112, e113, e114, e115, e116, e117,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
        e118, e119, e120, e121, e122, e123, e124, e125, e126, e127, e128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
    public enum Silly500 {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
        e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e10, e11, e12, e13, e14, e15, e16,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
        e17, e18, e19, e20, e21, e22, e23, e24, e25, e26, e27, e28, e29, e30, e31,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
        e32, e33, e34, e35, e36, e37, e38, e39, e40, e41, e42, e43, e44, e45, e46,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
        e47, e48, e49, e50, e51, e52, e53, e54, e55, e56, e57, e58, e59, e60, e61,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
        e62, e63, e64, e65, e66, e67, e68, e69, e70, e71, e72, e73, e74, e75, e76,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
        e77, e78, e79, e80, e81, e82, e83, e84, e85, e86, e87, e88, e89, e90, e91,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
        e92, e93, e94, e95, e96, e97, e98, e99, e100, e101, e102, e103, e104, e105,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
        e106, e107, e108, e109, e110, e111, e112, e113, e114, e115, e116, e117,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
        e118, e119, e120, e121, e122, e123, e124, e125, e126, e127, e128, e129,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
        e130, e131, e132, e133, e134, e135, e136, e137, e138, e139, e140, e141,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
        e142, e143, e144, e145, e146, e147, e148, e149, e150, e151, e152, e153,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
        e154, e155, e156, e157, e158, e159, e160, e161, e162, e163, e164, e165,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
        e166, e167, e168, e169, e170, e171, e172, e173, e174, e175, e176, e177,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
        e178, e179, e180, e181, e182, e183, e184, e185, e186, e187, e188, e189,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
        e190, e191, e192, e193, e194, e195, e196, e197, e198, e199, e200, e201,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
        e202, e203, e204, e205, e206, e207, e208, e209, e210, e211, e212, e213,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
        e214, e215, e216, e217, e218, e219, e220, e221, e222, e223, e224, e225,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
        e226, e227, e228, e229, e230, e231, e232, e233, e234, e235, e236, e237,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
        e238, e239, e240, e241, e242, e243, e244, e245, e246, e247, e248, e249,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
        e250, e251, e252, e253, e254, e255, e256, e257, e258, e259, e260, e261,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
        e262, e263, e264, e265, e266, e267, e268, e269, e270, e271, e272, e273,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
        e274, e275, e276, e277, e278, e279, e280, e281, e282, e283, e284, e285,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
        e286, e287, e288, e289, e290, e291, e292, e293, e294, e295, e296, e297,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
        e298, e299, e300, e301, e302, e303, e304, e305, e306, e307, e308, e309,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
        e310, e311, e312, e313, e314, e315, e316, e317, e318, e319, e320, e321,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
        e322, e323, e324, e325, e326, e327, e328, e329, e330, e331, e332, e333,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
        e334, e335, e336, e337, e338, e339, e340, e341, e342, e343, e344, e345,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
        e346, e347, e348, e349, e350, e351, e352, e353, e354, e355, e356, e357,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
        e358, e359, e360, e361, e362, e363, e364, e365, e366, e367, e368, e369,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
        e370, e371, e372, e373, e374, e375, e376, e377, e378, e379, e380, e381,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
        e382, e383, e384, e385, e386, e387, e388, e389, e390, e391, e392, e393,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
        e394, e395, e396, e397, e398, e399, e400, e401, e402, e403, e404, e405,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
        e406, e407, e408, e409, e410, e411, e412, e413, e414, e415, e416, e417,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
        e418, e419, e420, e421, e422, e423, e424, e425, e426, e427, e428, e429,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
        e430, e431, e432, e433, e434, e435, e436, e437, e438, e439, e440, e441,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
        e442, e443, e444, e445, e446, e447, e448, e449, e450, e451, e452, e453,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
        e454, e455, e456, e457, e458, e459, e460, e461, e462, e463, e464, e465,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
        e466, e467, e468, e469, e470, e471, e472, e473, e474, e475, e476, e477,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
        e478, e479, e480, e481, e482, e483, e484, e485, e486, e487, e488, e489,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
        e490, e491, e492, e493, e494, e495, e496, e497, e498, e499
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
}