Exemple #1
0
 private static STClass[] sodaTestCases() {
   STClass[] commonCases = commonTestCases();
   STClass[] collectionCases = collectionTestCases();
   STClass[] allCases = new STClass[commonCases.length + collectionCases.length];
   System.arraycopy(commonCases, 0, allCases, 0, commonCases.length);
   System.arraycopy(collectionCases, 0, allCases, commonCases.length, collectionCases.length);
   return allCases;
 }
 private byte[] readName(LatinStringIO sio, ByteArrayBuffer reader) {
   if (Deploy.debug) {
     reader.readBegin(Const4.YAPCLASS);
   }
   int len = reader.readInt();
   len = len * sio.bytesPerChar();
   byte[] nameBytes = new byte[len];
   System.arraycopy(reader._buffer, reader._offset, nameBytes, 0, len);
   nameBytes = Platform4.updateClassName(nameBytes);
   reader.incrementOffset(len);
   return nameBytes;
 }
Exemple #3
0
 protected void completed() {
   time = System.currentTimeMillis() - time;
   System.out.println(name() + " completed. " + time + " ms");
   System.out.println("Test cases: " + testCases);
 }
Exemple #4
0
 public static void main(String[] args) {
   time = System.currentTimeMillis();
   SodaTest st = new SodaTest();
   st.run(CLASSES, ENGINES, quiet);
   st.completed();
 }