Closed GoogleCodeExporter closed 8 years ago
Original comment by lar...@gmail.com
on 13 Jun 2011 at 12:20
Fixed.
Original comment by lar...@gmail.com
on 13 Jun 2011 at 12:57
I did hg pull but can't seem to see the fix.
Am I updating my working mercurial dir incorrectly?
Original comment by ale...@yoxel.com
on 13 Jun 2011 at 7:13
I see, I also need to do hg update ...
Original comment by ale...@yoxel.com
on 13 Jun 2011 at 8:25
Hi Lars, there is still a bug in retrieving the multiple values.
r2.getValues(propname) - this one still returns only a Collection.singleton()
public double compare(Record r1, Record r2) {
double prob = 0.5;
for (String propname : r1.getProperties()) {
Property prop = database.getPropertyByName(propname);
if (prop.isIdProperty())
continue;
Collection<String> vs1 = r1.getValues(propname);
Collection<String> vs2 = r2.getValues(propname);
Original comment by ale...@yoxel.com
on 14 Jun 2011 at 6:01
Ah, true. I need some unit tests for the core engine to avoid this sort of
error.
Original comment by lar...@gmail.com
on 14 Jun 2011 at 7:02
[deleted comment]
I've fixed this now, and also added a test case for it:
http://code.google.com/p/duke/source/browse/src/test/java/no/priv/garshol/duke/t
est/DocumentRecordTest.java#49
Original comment by lar...@gmail.com
on 15 Jun 2011 at 7:47
Original issue reported on code.google.com by
ale...@yoxel.com
on 13 Jun 2011 at 6:32