[ 
https://issues.apache.org/jira/browse/DERBY-2304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471157
 ] 

Jean T. Anderson commented on DERBY-2304:
-----------------------------------------

Dan asked:
> On the assertDecimalEquals() how were you comparing the string to the 
> BigDecimal? 

I goofed -- I was moving too quickly and didn't pay close enough attention to 
your assertDecimalEquals() suggestion.

I did this, which was silly:
    assertEquals("OUT 2", "33.3330", cs.getBigDecimal(2));

This code passes on 1.4.2, but it can't be reliable:
   assertEquals("OUT 2", "33.3330", cs.getBigDecimal(2).toString());

I'll slow down and work on a real decimal comparison solution. Thanks for all 
the help!

> Convert derbynet/callable.java to junit
> ---------------------------------------
>
>                 Key: DERBY-2304
>                 URL: https://issues.apache.org/jira/browse/DERBY-2304
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Jean T. Anderson
>         Assigned To: Jean T. Anderson
>            Priority: Minor
>         Attachments: derby-2304-preview-2.diff, derby-2304-preview-3.diff, 
> derby-2304-preview.diff
>
>
> Convert the derbynet.callable.java test to the junit framework.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to