Changeset 3666


Ignore:
Timestamp:
Aug 14, 2007, 7:46:17 PM (16 years ago)
Author:
Nicklas Nordborg
Message:

References #469: Added negative numbers to test case with dirty data

Location:
trunk/src/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test/TestDirty.java

    r3633 r3666  
    8787    test_sum_count(rawBioAssayId, "x", 9920f, 5);
    8888    test_sum_count(rawBioAssayId, "y", 22930f, 4);
    89     test_sum_count(rawBioAssayId, "diameter", 460f, 4);
     89    test_sum_count(rawBioAssayId, "diameter", 240f, 4);
    9090   
    9191    if (TestUtil.waitBeforeDelete()) TestUtil.waitForEnter();
     
    124124      int count = result.getInt(2);
    125125     
    126       if (Math.abs(expectedSum - sum) > 0.5)
     126      if (Math.abs(expectedSum - sum) > 0.1)
    127127      {
    128128        throw new Exception("Unexpected sum for '"+property+"': " + sum +"; expected " +expectedSum);
  • trunk/src/test/data/test.import.dirty.txt

    r3472 r3666  
    22# Line 1: "err" is in a numeric column and should be replace by null
    33#       : " 1690 " contains space before and after and should trimmed and parsed correctly
     4#       : "-110.4" test that parsing of negative numbers works as expected
    45# Line 2: " 120 " contains space before and after and should trimmed and parsed correctly
    56# Line 3: Extra space in external ID should be trimmed and use same reporter as on line 2
     
    89# Line 5: "err" is in a numeric columns and should be replaced by null
    910"Block" "Column"  "Row" "Name"  "ID"  "X" "Y" "Dia."  "F635 Median"
    10 1 1 1 "demoA" "demoA"  1690   err 110 183
     111 1 1 "demoA" "demoA"  1690   err -110.4  183
    11121 2 1 "demoB" "demoB" 1910  5730   120  114
    12131 3 1 "demoB "  "demoB "  1910  5730  120 114
    13 1 4 1 "demoblank" "demoblank" 2110  5740  110 0
     141 4 1 "demoblank" "demoblank" 2110  5740  110.4 0
    14151 5 1 "demoBLANK" "demoBLANK" 2300  5730  err 185
Note: See TracChangeset for help on using the changeset viewer.