hakandilek / xmdl

Automatically exported from code.google.com/p/xmdl
0 stars 0 forks source link

Round double fields up 1 digit #86

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. If mysql is used as a database server, 15 digits are used after zero for
double numbers. Thus, test values for date fields should be rounded up from
16 digits to 15 digits.

expected:<0.50321188696478*47*> but was:<0.50321188696478*5*>

What is the expected output? What do you see instead?
In EntityDAOTEst.java and sample-data.xml files date fields should be
changed from:
        assertEquals(new Double(0.5032118869647847), job.getValue());
to:
        assertEquals(new Double(0.503211886964785), job.getValue());

Original issue reported on code.google.com by hakandi...@gmail.com on 16 Jan 2009 at 11:53