LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Sun Oct 29 19:35:45 CET 2006
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/06/10 29:19:35

    Modified: jop/java/target/src/test/jdk DoAll.java TestVector.java
    Log:
    no message


    Revision Changes Path
    1.2 jop/java/target/src/test/jdk/DoAll.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/jdk/DoAll.java.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: DoAll.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/test/jdk/DoAll.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- DoAll.java 4 Oct 2006 16:33:27 -0000 1.1
    +++ DoAll.java 29 Oct 2006 18:35:44 -0000 1.2
    @@ -19,11 +19,9 @@

    TestCase tc[] = {
    new HashCode(),
    -// new TestVector(),
    + new TestVector(),
    };

    - new Vector();
    -
    for (int i=0; i<tc.length; ++i) {
    System.out.print(tc[i].getName());
    if (tc[i].test()) {



    1.2 jop/java/target/src/test/jdk/TestVector.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/jdk/TestVector.java.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: TestVector.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/test/jdk/TestVector.java,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- TestVector.java 4 Oct 2006 16:33:07 -0000 1.1
    +++ TestVector.java 29 Oct 2006 18:35:45 -0000 1.2
    @@ -6,20 +6,24 @@
    public class TestVector extends TestCase {

    public String getName() {
    - return "Vect";
    + return "Vector";
    }

    public boolean test() {

    + boolean ret = true;
    Vector v = new Vector();

    for (int i=0; i<10; ++i) {
    - v.add(new Integer(i));
    + v.addElement(new Integer(i));
    }
    for (int i=0; i<10; ++i) {
    - System.out.println((String) v.get(i));
    + Integer ival = (Integer) v.elementAt(i);
    + if (ival.intValue() != i) {
    + ret = false;
    }
    - return true;
    + }
    + return ret;
    }

    }



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.