db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject cvs commit: db-torque/src/test/org/apache/torque/om NumberKeyTest.java
Date Sat, 08 Jan 2005 14:58:15 GMT
tfischer    2005/01/08 06:58:15

  Modified:    src/test/org/apache/torque/om Tag: TORQUE_3_1_BRANCH
                        NumberKeyTest.java
  Log:
  Backported patch from HEAD (NumberKeyTest.1.4) :
  TRQS180: NumberKey long constructor introduces rounding errors
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.4.3   +10 -2     db-torque/src/test/org/apache/torque/om/NumberKeyTest.java
  
  Index: NumberKeyTest.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/test/org/apache/torque/om/NumberKeyTest.java,v
  retrieving revision 1.3.4.2
  retrieving revision 1.3.4.3
  diff -u -r1.3.4.2 -r1.3.4.3
  --- NumberKeyTest.java	20 May 2004 04:36:07 -0000	1.3.4.2
  +++ NumberKeyTest.java	8 Jan 2005 14:58:15 -0000	1.3.4.3
  @@ -112,5 +112,13 @@
           Assert.assertEquals(n1b, array[1]);
           Assert.assertEquals(n2a, array[2]);
       }
  -    
  +
  +    /**
  +     * Test long constructor
  +     */
  +    public void testLongConstructor()
  +    {
  +        NumberKey key = new NumberKey(9900000000000001L);
  +        assertEquals("9900000000000001", key.toString());
  +    }    
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message